Package org.jruby.ext.ffi.jffi
Class AllocatedNativeMemoryIO.AllocationGroup
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<T>
org.jruby.util.PhantomReferenceReaper<Object>
org.jruby.ext.ffi.jffi.AllocatedNativeMemoryIO.AllocationGroup
- All Implemented Interfaces:
Runnable
- Enclosing class:
- AllocatedNativeMemoryIO
private static final class AllocatedNativeMemoryIO.AllocationGroup
extends PhantomReferenceReaper<Object>
implements Runnable
Holder for a group of memory allocations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longstatic final intprivate final WeakReference<Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.ref.PhantomReference
getMethods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
MAX_BYTES_PER_BUCKET
public static final int MAX_BYTES_PER_BUCKET- See Also:
-
weakref
-
head
-
bytesUsed
private long bytesUsed
-
-
Constructor Details
-
AllocationGroup
AllocationGroup(Object sentinel)
-
-
Method Details