NativeObject instance. At some point, after a NativeObject is
garbage collected, a call is made to release the handle, allowing the corresponding object in the
native image heap to be collected.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final NativeObjectCleaner | |
| private final NativeIsolate | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | NativeObject(NativeIsolate
an isolate in which an object referenced by the handle exists. isolate, long a handle to an object in a native image heap objectHandle)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public final long | |
| public final NativeIsolate | |
| public final void |
| cleanup | back to summary |
|---|---|
| private final NativeObjectCleaner<NativeObject> cleanup | |
| isolate | back to summary |
|---|---|
| private final NativeIsolate isolate | |
| objectHandle | back to summary |
|---|---|
| private final long objectHandle | |
| NativeObject | back to summary |
|---|---|
| public NativeObject(NativeIsolate isolate, long objectHandle) Creates a new
| |
| getHandle | back to summary |
|---|---|
| public final long getHandle() Returns a handle to an object in the native image heap. | |
| getIsolate | back to summary |
|---|---|
| public final NativeIsolate getIsolate() Returns an isolate in which an object referenced by this handle exists. | |
| release | back to summary |
|---|---|
| public final void release() Explicitly releases object in the native image heap referenced by this handle. The use of
this method should be exceptional. By default, the lifetime of the object in the native image
heap is bound to the lifetime of the | |
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanUp(long
the isolate thread address to call into isolate. isolateThread)Implements abstract org. At some point after a |
| public String |
| handle | back to summary |
|---|---|
| private final long handle | |
| NativeObjectCleanerImpl | back to summary |
|---|---|
| pack-priv NativeObjectCleanerImpl(NativeObject nativeObject) | |
| cleanUp | back to summary |
|---|---|
| public void cleanUp(long isolateThread) Implements abstract org. Doc from org. At some point after a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |