| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile boolean | |
| private final long | storage
The real memory address |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static final AllocatedNativeMemory | Returns: A newAllocatedDirectMemoryThe number of bytes to allocate size, boolean Whether the memory should be cleared (zeroed) clear)Allocates native memory |
| pack-priv static final AllocatedNativeMemory | Returns: A newAllocatedDirectMemoryThe 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. |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| public void | |
| public void | setAutoRelease(boolean release)
Implements org.
|
| autorelease | back to summary |
|---|---|
| private volatile boolean autorelease | |
| released | back to summary |
|---|---|
| private volatile boolean released | |
| storage | back to summary |
|---|---|
| private final long storage The real memory address | |
| AllocatedNativeMemory | back to summary |
|---|---|
| private AllocatedNativeMemory(long address, int size, int align) | |
| allocate | back to summary |
|---|---|
| pack-priv static final AllocatedNativeMemory allocate(int size, boolean clear) Allocates native memory
A new | |
| allocateAligned | back to summary |
|---|---|
| pack-priv static final AllocatedNativeMemory allocateAligned(int size, int align, boolean clear) Allocates native memory, aligned to a minimum boundary.
A new | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| free | back to summary |
|---|---|
| public void free() Implements org. | |
| setAutoRelease | back to summary |
|---|---|
| public void setAutoRelease(boolean release) Implements org. | |