| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ThreadLocal | |
| private final ReferenceQueue | |
| private final ReferenceQueue | |
| private Reference | |
| private final Map | |
| private final Map | |
| private static final AtomicLong | |
| private final ReferenceQueue | |
| private ObjectSpace. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public IRubyObject | |
| private synchronized void | |
| private synchronized ObjectSpace. | |
| public static long | |
| private void | |
| private void | |
| public long | |
| private long | |
| private ObjectSpace. | |
| public IRubyObject | |
| public long | |
| public synchronized Iterator | |
| private synchronized void | |
| public void | |
| public void | |
| private synchronized void |
| currentObjectGroup | back to summary |
|---|---|
| private final ThreadLocal<Reference<ObjectSpace. | |
| deadIdentityReferences | back to summary |
|---|---|
| private final ReferenceQueue<T> deadIdentityReferences | |
| deadReferences | back to summary |
|---|---|
| private final ReferenceQueue<Object> deadReferences | |
| groupSweeperReference | back to summary |
|---|---|
| private Reference<ObjectSpace. | |
| identities | back to summary |
|---|---|
| private final Map<Long, ObjectSpace. | |
| identitiesByObject | back to summary |
|---|---|
| private final Map<IRubyObject, Long> identitiesByObject | |
| maxId | back to summary |
|---|---|
| private static final AtomicLong maxId | |
| objectGroupReferenceQueue | back to summary |
|---|---|
| private final ReferenceQueue<ObjectSpace. | |
| top | back to summary |
|---|---|
| private ObjectSpace. | |
| ObjectSpace | back to summary |
|---|---|
| public ObjectSpace() | |
| add | back to summary |
|---|---|
| public void add(IRubyObject object) | |
| addFinalizer | back to summary |
|---|---|
| public void addFinalizer(IRubyObject object, IRubyObject proc)
Deprecated
| |
| addFinalizer | back to summary |
|---|---|
| public IRubyObject addFinalizer(ThreadContext context, IRubyObject object, IRubyObject proc) | |
| addIndividualWeakReference | back to summary |
|---|---|
| private synchronized void addIndividualWeakReference(IRubyObject object) | |
| addObjectGroup | back to summary |
|---|---|
| private synchronized ObjectSpace. | |
| calculateObjectId | back to summary |
|---|---|
| public static long calculateObjectId(Object object) | |
| cleanIdentities | back to summary |
|---|---|
| private void cleanIdentities() | |
| cleanup | back to summary |
|---|---|
| private void cleanup(ReferenceQueue<?> referenceQueue) | |
| createAndRegisterObjectId | back to summary |
|---|---|
| public long createAndRegisterObjectId(IRubyObject rubyObject) | |
| createId | back to summary |
|---|---|
| private long createId(IRubyObject object) | |
| getObjectGroup | back to summary |
|---|---|
| private ObjectSpace. | |
| id2ref | back to summary |
|---|---|
| public IRubyObject id2ref(long id) | |
| idOf | back to summary |
|---|---|
| public long idOf(IRubyObject rubyObject)
Deprecated
| |
| iterator | back to summary |
|---|---|
| public synchronized Iterator | |
| registerGroupSweeper | back to summary |
|---|---|
| private synchronized void registerGroupSweeper() | |
| registerObjectId | back to summary |
|---|---|
| public void registerObjectId(long id, IRubyObject object) | |
| removeFinalizers | back to summary |
|---|---|
| public void removeFinalizers(long id) | |
| splitObjectGroups | back to summary |
|---|---|
| private synchronized void splitObjectGroups() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| GroupSweeper | back to summary |
|---|---|
| private GroupSweeper() | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| id | back to summary |
|---|---|
| pack-priv final long id | |
| IdReference | back to summary |
|---|---|
| pack-priv IdReference(IRubyObject object, long id, ReferenceQueue<T> queue) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | |
| private final AtomicReferenceArray |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(IRubyObject
element to be appended to this list obj)Overrides java. Implements java. Appends the specified element to the end of this list (optional operation). |
| public IRubyObject | get(int
index of the element to return index)Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| private boolean | |
| public IRubyObject | set(int
index of the element to replace index, IRubyObject element to be stored at the specified position element)Overrides java. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| MAX_OBJECTS_PER_GROUP | back to summary |
|---|---|
| private static final int MAX_OBJECTS_PER_GROUP | |
| nextIndex | back to summary |
|---|---|
| private int nextIndex | |
| objects | back to summary |
|---|---|
| private final AtomicReferenceArray<IRubyObject> objects | |
| ObjectGroup | back to summary |
|---|---|
| private ObjectGroup() | |
| add | back to summary |
|---|---|
| public boolean add(IRubyObject obj) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| get | back to summary |
|---|---|
| public IRubyObject get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| isFull | back to summary |
|---|---|
| private boolean isFull() | |
| set | back to summary |
|---|---|
| public IRubyObject set(int index, IRubyObject element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private ObjectSpace. | |
| private ObjectSpace. |
| Access | Constructor and Description |
|---|---|
| public | WeakReferenceListNode(T referent, ReferenceQueue<T> queue, ObjectSpace.
|
| Modifier and Type | Method and Description |
|---|---|
| private void |
| nextNode | back to summary |
|---|---|
| private ObjectSpace. | |
| prevNode | back to summary |
|---|---|
| private ObjectSpace. | |
| WeakReferenceListNode | back to summary |
|---|---|
| public WeakReferenceListNode(T referent, ReferenceQueue<T> queue, ObjectSpace. | |
| remove | back to summary |
|---|---|
| private void remove() | |