| Modifier and Type | Class and Description |
|---|---|
| private static class | TransientNativeMemory.
Holder for a group of memory allocations. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private static final int | |
| private static final Map | referenceSet
Keeps strong references to the magazine until cleanup |
| private final TransientNativeMemory. | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | TransientNativeMemory(Runtime runtime, TransientNativeMemory.
|
| Modifier and Type | Method and Description |
|---|---|
| private static long | |
| public static DirectMemoryIO | |
| public static DirectMemoryIO | |
| public final void | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides jnr. |
| public int | hashCode()
Returns a hash code value for this object.
|
| public long | size()
Overrides jnr. |
| currentMagazine | back to summary |
|---|---|
| private static final ThreadLocal<TransientNativeMemory. | |
| PAGES_PER_MAGAZINE | back to summary |
|---|---|
| private static final int PAGES_PER_MAGAZINE | |
| referenceSet | back to summary |
|---|---|
| private static final Map<TransientNativeMemory. Keeps strong references to the magazine until cleanup
| |
| sentinel | back to summary |
|---|---|
| private final TransientNativeMemory. | |
| size | back to summary |
|---|---|
| private final long size | |
| TransientNativeMemory | back to summary |
|---|---|
| pack-priv TransientNativeMemory(Runtime runtime, TransientNativeMemory. | |
| align | back to summary |
|---|---|
| private static long align(long offset, long align) | |
| allocate | back to summary |
|---|---|
| public static DirectMemoryIO allocate(Runtime runtime, int size, int align, boolean clear) | |
| allocate | back to summary |
|---|---|
| public static DirectMemoryIO allocate(Runtime runtime, long size, int align, boolean clear) | |
| dispose | back to summary |
|---|---|
| public final void dispose() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides jnr. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides jnr. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| size | back to summary |
|---|---|
| public long size() Overrides jnr. Doc from jnr. Gets the size of this memory object in bytes (optional operation).
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private long | |
| private final long | |
| private final int | |
| private final PageManager | |
| private final Reference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| public final void | finalizeReferent()
Implements jnr. |
| pack-priv TransientNativeMemory. |
| 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 | |
| sentinelReference | back to summary |
|---|---|
| private final Reference<TransientNativeMemory. | |
| Magazine | back to summary |
|---|---|
| pack-priv Magazine(TransientNativeMemory. | |
| allocate | back to summary |
|---|---|
| pack-priv long allocate(long size, int align) | |
| finalizeReferent | back to summary |
|---|---|
| public final 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. | |
| sentinel | back to summary |
|---|---|
| pack-priv TransientNativeMemory. | |
| Access | Constructor and Description |
|---|---|
| private |
| Sentinel | back to summary |
|---|---|
| private Sentinel() | |