Class LibGraalObject

java.lang.Object
com.oracle.truffle.runtime.hotspot.libgraal.LibGraalObject

public class LibGraalObject extends Object
Encapsulates a handle to an object in a libgraal isolate where the object's lifetime is bound to the lifetime of the LibGraalObject instance. At some point after a LibGraalObject is garbage collected, a call is made to release the handle, allowing the libgraal object to be collected.
  • Constructor Details

    • LibGraalObject

      protected LibGraalObject(long handle)
      Creates a new LibGraalObject.
      Parameters:
      handle - handle to an object in a libgraal isolate
  • Method Details

    • getHandle

      public long getHandle()
      Gets the raw JNI handle wrapped by this object.
    • toString

      public String toString()
      Overrides:
      toString in class Object