Interface GcModule

All Superinterfaces:
AutoCloseable

public interface GcModule extends AutoCloseable
Java proxy module for gc.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
    Run a full collection.
    static GcModule
     
    org.jpy.PyObject
    get_referrers(org.jpy.PyObject pyObject)
    Get the referrers for an object.
  • Method Details

    • create

      static GcModule create()
    • collect

      int collect()
      Run a full collection.
      Returns:
      the number of unreachable objects found
      See Also:
    • get_referrers

      org.jpy.PyObject get_referrers(org.jpy.PyObject pyObject)
      Get the referrers for an object. This method should be used for debugging only.
      Parameters:
      pyObject - the python object
      Returns:
      the list of objects that directly refer to any of objs
      See Also:
    • close

      void close()
      Specified by:
      close in interface AutoCloseable