| Modifier and Type | Class and Description |
|---|---|
| private static class | TransientNativeMemoryIO.
Holder for a group of memory allocations. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private static final int | |
| private static final Map | referenceSet
Keeps strong references to the memory bucket until cleanup |
| private final Object |
| Access | Constructor and Description |
|---|---|
| private |
| 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. |
| currentMagazine | back to summary |
|---|---|
| private static final ThreadLocal<Reference<TransientNativeMemoryIO. | |
| PAGES_PER_MAGAZINE | back to summary |
|---|---|
| private static final int PAGES_PER_MAGAZINE | |
| referenceSet | back to summary |
|---|---|
| private static final Map<TransientNativeMemoryIO. Keeps strong references to the memory bucket until cleanup | |
| sentinel | back to summary |
|---|---|
| private final Object sentinel | |
| TransientNativeMemoryIO | back to summary |
|---|---|
| private TransientNativeMemoryIO(Ruby runtime, Object sentinel, long address, int size) | |
| 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. | |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private long | |
| private final long | |
| private final int | |
| private final PageManager | |
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| public final void | |
| pack-priv Object |
| end | back to summary |
|---|---|
| private final long end | |
| memory | back to summary |
|---|---|
| private long memory | |
| page | back to summary |
|---|---|
| private final long page | |
| pageCount | back to summary |
|---|---|
| private final int pageCount | |
| pm | back to summary |
|---|---|
| private final PageManager pm | |
| weakref | back to summary |
|---|---|
| private final WeakReference<Object> weakref | |
| Magazine | back to summary |
|---|---|
| pack-priv Magazine(Object sentinel, PageManager pm, long page, int pageCount) | |
| allocate | back to summary |
|---|---|
| pack-priv long allocate(int size, int align) | |
| run | back to summary |
|---|---|
| public final void run() Implements java. Doc from java. Runs this operation. | |
| sentinel | back to summary |
|---|---|
| pack-priv Object sentinel() | |