JNIMethodScope and thus invalid once the scope
exits or a global JNI handle that is only released sometime after the HSObject dies.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HSObject. | cleaner
Cleaner for Global Reference. |
| private static final Set | CLEANERS
Strong references to the |
| private static final ReferenceQueue | CLEANERS_QUEUE
Queue into which a |
| private final JNI. | handle
JNI handle to the HotSpot object. |
| private HSObject | next
Link to next the next scope local object. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | HSObject(JNIMethodScope scope, JNI.
Creates an object encapsulating a |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static boolean | |
| private static void | |
| public static void | cleanHandles(JNI.
Processes |
| public final JNI. | |
| pack-priv static int | Returns: the number of objects in the listInvalidates the objects in the list starting at |
| public final void | |
| public String |
| cleaner | back to summary |
|---|---|
| private final HSObject. Cleaner for Global Reference. | |
| CLEANERS | back to summary |
|---|---|
| private static final Set<HSObject. Strong references to the | |
| CLEANERS_QUEUE | back to summary |
|---|---|
| private static final ReferenceQueue<HSObject> CLEANERS_QUEUE Queue into which a | |
| handle | back to summary |
|---|---|
| private final JNI. JNI handle to the HotSpot object. | |
| next | back to summary |
|---|---|
| private HSObject next Link to next the next scope local object. The head of the list is in
| |
| HSObject | back to summary |
|---|---|
| public HSObject(JNI. Creates an object encapsulating a | |
| HSObject | back to summary |
|---|---|
| public HSObject(JNI. Creates an object encapsulating a | |
| HSObject | back to summary |
|---|---|
| public HSObject(JNIMethodScope scope, JNI. Creates an object encapsulating a | |
| assertionsEnabled | back to summary |
|---|---|
| private static boolean assertionsEnabled() | |
| checkingGlobalDuplicates | back to summary |
|---|---|
| private static boolean checkingGlobalDuplicates(boolean allowGlobalDuplicates) | |
| checkNonExistingGlobalReference | back to summary |
|---|---|
| private static void checkNonExistingGlobalReference(JNI. | |
| cleanHandles | back to summary |
|---|---|
| public static void cleanHandles(JNI. Processes | |
| getHandle | back to summary |
|---|---|
| public final JNI. | |
| invalidate | back to summary |
|---|---|
| pack-priv static int invalidate(HSObject head) Invalidates the objects in the list starting at
| |
| release | back to summary |
|---|---|
| public final void release(JNI. | |
| 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- | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private JNI. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void |
| allowGlobalDuplicates | back to summary |
|---|---|
| private final boolean allowGlobalDuplicates | |
| handle | back to summary |
|---|---|
| private JNI. | |
| weak | back to summary |
|---|---|
| private final boolean weak | |
| Cleaner | back to summary |
|---|---|
| pack-priv Cleaner(HSObject referent, JNI. | |
| clean | back to summary |
|---|---|
| pack-priv void clean(JNI. | |
| delete | back to summary |
|---|---|
| private void delete(JNI. | |