Package org.jruby.ext.ffi.jffi
Class TransientNativeMemoryIO.Magazine
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<T>
org.jruby.util.PhantomReferenceReaper<Object>
org.jruby.ext.ffi.jffi.TransientNativeMemoryIO.Magazine
- All Implemented Interfaces:
Runnable
- Enclosing class:
- TransientNativeMemoryIO
private static final class TransientNativeMemoryIO.Magazine
extends PhantomReferenceReaper<Object>
implements Runnable
Holder for a group of memory allocations.
-
Field Summary
Fields -
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
-
weakref
-
pm
private final com.kenai.jffi.PageManager pm -
page
private final long page -
end
private final long end -
pageCount
private final int pageCount -
memory
private long memory
-
-
Constructor Details
-
Magazine
Magazine(Object sentinel, com.kenai.jffi.PageManager pm, long page, int pageCount)
-
-
Method Details