Package org.jruby.ext.ffi.jffi
Class CachingNativeMemoryAllocator.Magazine
java.lang.Object
org.jruby.ext.ffi.jffi.CachingNativeMemoryAllocator.Magazine
- Enclosing class:
- CachingNativeMemoryAllocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CachingNativeMemoryAllocator.MemoryAllocation[](package private) final CachingNativeMemoryAllocator.Bucketprivate boolean(package private) static final intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) CachingNativeMemoryAllocator.MemoryAllocationallocate(boolean clear) (package private) voiddispose()(package private) voidrecycle()(package private) void
-
Field Details
-
MAX_BYTES_PER_MAGAZINE
static final int MAX_BYTES_PER_MAGAZINE- See Also:
-
bucket
-
allocations
-
nextIndex
private int nextIndex -
fragmented
private volatile boolean fragmented
-
-
Constructor Details
-
Magazine
Magazine(CachingNativeMemoryAllocator.Bucket bucket)
-
-
Method Details
-
allocate
-
setFragmented
void setFragmented() -
dispose
void dispose() -
recycle
void recycle()
-