Package jep.python

Class MemoryManager

    • Constructor Summary

      Constructors 
      Constructor Description
      MemoryManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanupReferences()
      Cleans out all the known references to PyPointers associated with this Interpreter.
      void cleanupWeakReferences()
      Cleans out weak references to PyPointers associated with this Interpreter.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemoryManager

        public MemoryManager()
    • Method Detail

      • cleanupReferences

        public void cleanupReferences()
                               throws JepException
        Cleans out all the known references to PyPointers associated with this Interpreter.
        Throws:
        JepException - if an error occurs
      • cleanupWeakReferences

        public void cleanupWeakReferences()
                                   throws JepException
        Cleans out weak references to PyPointers associated with this Interpreter. Attempts to free memory earlier than a Jep.close() if the developer did not explicitly free the memory with PyObject.close().
        Throws:
        JepException - if an error occurs