Class NativeObjectHandles
java.lang.Object
org.graalvm.nativebridge.NativeObjectHandles
A support class for mapping objects in the native image isolate to long handles.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn exception thrown when an invalid handle is resolved. -
Method Summary
-
Method Details
-
create
-
resolve
Resolves a handle into an object.- Throws:
NativeObjectHandles.InvalidHandleException- if the handle is either already removed or invalid.
-
remove
public static void remove(long handle) Removes a handle. Allows an object identified by thehandleto be garbage collected.
-