public final class HeapMemory extends MemoryArea
Heap memory represents the default allocation context for Java applications.
memoryAreaHeapLock| Modifier and Type | Method and Description |
|---|---|
static HeapMemory |
instance()
instance returns the single instance of HeapMemory in the
system.
|
long |
memoryConsumed()
memoryConsumed returns the number of bytes of memory of this
memory area that have been consumed.
|
long |
memoryRemaining()
memoryRemaining returns the number of available bytes left in
this memory area.
|
clearMemory, createStackedMemory, enter, enter, executeInArea, freeStacked, getMemoryArea, memoryNeedsToBeCleared, memoryNeedsToBeFreed, newArray, newInstance, newInstance, sizepublic static HeapMemory instance()
public long memoryRemaining()
memoryRemaining in class MemoryAreapublic long memoryConsumed()
memoryConsumed in class MemoryAreaaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2016 aicas GmbH. All Rights Reserved.