| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final CachingNativeMemoryAllocator. | buckets
Keeps strong references to the memory bucket until cleanup |
| private static final ThreadLocal | |
| protected static final MemoryIO | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static long | |
| pack-priv static MemoryIO | Returns: A neworg.The Ruby runtime runtime, int The number of bytes to allocate size, int The minimum alignment of the memory align, boolean Whether the memory should be cleared (zeroed) clear)Allocates native memory, aligned to a minimum boundary. |
| pack-priv static int | |
| pack-priv static void | |
| pack-priv static int |
| buckets | back to summary |
|---|---|
| private static final CachingNativeMemoryAllocator. Keeps strong references to the memory bucket until cleanup | |
| currentAllocator | back to summary |
|---|---|
| private static final ThreadLocal<Reference<CachingNativeMemoryAllocator. | |
| IO | back to summary |
|---|---|
| protected static final MemoryIO IO | |
| referenceSet | back to summary |
|---|---|
| private static final Map<CachingNativeMemoryAllocator. | |
| CachingNativeMemoryAllocator | back to summary |
|---|---|
| pack-priv CachingNativeMemoryAllocator() | |
| align | back to summary |
|---|---|
| private static long align(long offset, long align) | |
| allocateAligned | back to summary |
|---|---|
| pack-priv static MemoryIO allocateAligned(Ruby runtime, int size, int align, boolean clear) Allocates native memory, aligned to a minimum boundary. | |
| bucketIndex | back to summary |
|---|---|
| pack-priv static int bucketIndex(int size) | |
| clearMemory | back to summary |
|---|---|
| pack-priv static void clearMemory(long address, int size) | |
| roundUpToPowerOf2 | back to summary |
|---|---|
| pack-priv static int roundUpToPowerOf2(int n) | |
| Modifier and Type | Field and Description |
|---|---|
| private final CachingNativeMemoryAllocator. | |
| private Object |
| Access | Constructor and Description |
|---|---|
| private | AllocatedMemoryIO(Ruby runtime, Object sentinel, CachingNativeMemoryAllocator.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public void | setAutoRelease(boolean autorelease)
Implements org.
|
| allocation | back to summary |
|---|---|
| private final CachingNativeMemoryAllocator. | |
| sentinel | back to summary |
|---|---|
| private Object sentinel | |
| AllocatedMemoryIO | back to summary |
|---|---|
| private AllocatedMemoryIO(Ruby runtime, Object sentinel, CachingNativeMemoryAllocator. | |
| free | back to summary |
|---|---|
| public void free() Implements org. | |
| isAutoRelease | back to summary |
|---|---|
| public boolean isAutoRelease() Implements org. | |
| setAutoRelease | back to summary |
|---|---|
| public void setAutoRelease(boolean autorelease) Implements org. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CachingNativeMemoryAllocator. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CachingNativeMemoryAllocator. | |
| public void | finalizeReferent()
Implements jnr. Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created. |
| magazine | back to summary |
|---|---|
| pack-priv final CachingNativeMemoryAllocator. | |
| AllocationGroup | back to summary |
|---|---|
| pack-priv AllocationGroup(CachingNativeMemoryAllocator. | |
| allocate | back to summary |
|---|---|
| pack-priv CachingNativeMemoryAllocator. | |
| finalizeReferent | back to summary |
|---|---|
| public void finalizeReferent() Implements jnr. Doc from jnr. Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CachingNativeMemoryAllocator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CachingNativeMemoryAllocator. |
| allocationGroups | back to summary |
|---|---|
| pack-priv final CachingNativeMemoryAllocator. | |
| Allocator | back to summary |
|---|---|
| private Allocator() | |
| allocate | back to summary |
|---|---|
| pack-priv CachingNativeMemoryAllocator. | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Set | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized CachingNativeMemoryAllocator. | |
| pack-priv synchronized void | |
| private synchronized void |
| cache | back to summary |
|---|---|
| pack-priv final Set<CachingNativeMemoryAllocator. | |
| size | back to summary |
|---|---|
| pack-priv final int size | |
| Bucket | back to summary |
|---|---|
| pack-priv Bucket(int size) | |
| getMagazine | back to summary |
|---|---|
| pack-priv synchronized CachingNativeMemoryAllocator. | |
| recycle | back to summary |
|---|---|
| pack-priv synchronized void recycle(CachingNativeMemoryAllocator. | |
| removeCacheElement | back to summary |
|---|---|
| private synchronized void removeCacheElement(CachingNativeMemoryAllocator. | |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private final CachingNativeMemoryAllocator. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | finalizeReferent()
Implements jnr. Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created. |
| disposed | back to summary |
|---|---|
| private final AtomicBoolean disposed | |
| magazine | back to summary |
|---|---|
| private final CachingNativeMemoryAllocator. | |
| CacheElement | back to summary |
|---|---|
| pack-priv CacheElement(CachingNativeMemoryAllocator. | |
| finalizeReferent | back to summary |
|---|---|
| public void finalizeReferent() Implements jnr. Doc from jnr. Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created. | |
| Modifier and Type | Field and Description |
|---|---|
| private final CachingNativeMemoryAllocator. | |
| pack-priv final CachingNativeMemoryAllocator. | |
| private volatile boolean | |
| pack-priv static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CachingNativeMemoryAllocator. | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv void |
| allocations | back to summary |
|---|---|
| private final CachingNativeMemoryAllocator. | |
| bucket | back to summary |
|---|---|
| pack-priv final CachingNativeMemoryAllocator. | |
| fragmented | back to summary |
|---|---|
| private volatile boolean fragmented | |
| MAX_BYTES_PER_MAGAZINE | back to summary |
|---|---|
| pack-priv static final int MAX_BYTES_PER_MAGAZINE | |
| nextIndex | back to summary |
|---|---|
| private int nextIndex | |
| Magazine | back to summary |
|---|---|
| pack-priv Magazine(CachingNativeMemoryAllocator. | |
| allocate | back to summary |
|---|---|
| pack-priv CachingNativeMemoryAllocator. | |
| dispose | back to summary |
|---|---|
| pack-priv synchronized void dispose() | |
| recycle | back to summary |
|---|---|
| pack-priv synchronized void recycle() | |
| setFragmented | back to summary |
|---|---|
| pack-priv void setFragmented() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | |
| pack-priv volatile int | |
| pack-priv final CachingNativeMemoryAllocator. | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| public void |
| address | back to summary |
|---|---|
| pack-priv final long address | |
| flags | back to summary |
|---|---|
| pack-priv volatile int flags | |
| magazine | back to summary |
|---|---|
| pack-priv final CachingNativeMemoryAllocator. | |
| RELEASED | back to summary |
|---|---|
| pack-priv static final int RELEASED | |
| UNMANAGED | back to summary |
|---|---|
| pack-priv static final int UNMANAGED | |
| MemoryAllocation | back to summary |
|---|---|
| pack-priv MemoryAllocation(CachingNativeMemoryAllocator. | |
| dispose | back to summary |
|---|---|
| pack-priv final void dispose() | |
| free | back to summary |
|---|---|
| pack-priv final void free() | |
| isReleased | back to summary |
|---|---|
| pack-priv final boolean isReleased() | |
| isUnmanaged | back to summary |
|---|---|
| pack-priv final boolean isUnmanaged() | |
| setAutoRelease | back to summary |
|---|---|
| public void setAutoRelease(boolean autorelease) | |