NativeObjectCleaner#register() is called, or it can be performed explicitly
using NativeObjectCleaner#processPendingCleaners().
| Modifier and Type | Field and Description |
|---|---|
| private static final ReferenceQueue | |
| private static final Object | |
| pack-priv final NativeIsolate |
| Access | Constructor and Description |
|---|---|
| protected | NativeObjectCleaner(T
object the new weak reference will refer to referent, NativeIsolate the native object isolate isolate)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| protected abstract void | cleanUp(long
the isolate thread address to call into isolate. isolateThread)At some point after a |
| public static void | |
| public final NativeObjectCleaner |
| cleanersQueue | back to summary |
|---|---|
| private static final ReferenceQueue<Object> cleanersQueue | |
| INVALID_ISOLATE_THREAD | back to summary |
|---|---|
| private static final Object INVALID_ISOLATE_THREAD | |
| isolate | back to summary |
|---|---|
| pack-priv final NativeIsolate isolate | |
| NativeObjectCleaner | back to summary |
|---|---|
| protected NativeObjectCleaner(T referent, NativeIsolate isolate) Creates a new
| |
| cleanImpl | back to summary |
|---|---|
| private static void cleanImpl(long isolateThread, NativeObjectCleaner<?> cleaner) | |
| cleanUp | back to summary |
|---|---|
| protected abstract void cleanUp(long isolateThread) At some point after a
| |
| processPendingCleaners | back to summary |
|---|---|
| public static void processPendingCleaners() Performs an explicit clean up of enqueued | |
| register | back to summary |
|---|---|
| public final NativeObjectCleaner Registers | |