|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.Allocator.DefaultHeapAllocator
public abstract class DefaultHeapAllocator
Provides access functions to the default heap allocator for the current thread.
Field Summary | |
---|---|
static jq_StaticMethod |
_allocateArray
|
static jq_StaticMethod |
_allocateArrayAlign8
|
static jq_StaticMethod |
_allocateObject
|
static jq_StaticMethod |
_allocateObjectAlign8
|
Constructor Summary | |
---|---|
DefaultHeapAllocator()
|
Method Summary | |
---|---|
static Object |
allocateArray(int length,
int size,
Object vtable)
Allocate an array with the default heap allocator for the current thread. |
static Object |
allocateArrayAlign8(int length,
int size,
Object vtable)
Allocate an aligned array with the default heap allocator for the current thread. |
static Object |
allocateObject(int size,
Object vtable)
Allocate an object with the default heap allocator for the current thread. |
static Object |
allocateObjectAlign8(int size,
Object vtable)
Allocate an aligned object with the default heap allocator for the current thread. |
static void |
collect()
|
static HeapAllocator |
def()
The default heap allocator for the current thread. |
static int |
freeMemory()
Return the amount of free memory in the default heap allocator for the current thread. |
static void |
init()
Initialize the default heap allocator for the current thread. |
static boolean |
isValidHeapAddress(Address a)
|
static void |
processObjectReference(Address a)
|
static void |
processPossibleObjectReference(Address a)
|
static int |
totalMemory()
Return the total amount of memory us the default heap allocator for the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final jq_StaticMethod _allocateObject
public static final jq_StaticMethod _allocateObjectAlign8
public static final jq_StaticMethod _allocateArray
public static final jq_StaticMethod _allocateArrayAlign8
Constructor Detail |
---|
public DefaultHeapAllocator()
Method Detail |
---|
public static final HeapAllocator def()
public static final void init() throws OutOfMemoryError
OutOfMemoryError
public static final Object allocateObject(int size, Object vtable) throws OutOfMemoryError
OutOfMemoryError
public static final Object allocateObjectAlign8(int size, Object vtable) throws OutOfMemoryError
OutOfMemoryError
public static final Object allocateArray(int length, int size, Object vtable) throws OutOfMemoryError, NegativeArraySizeException
OutOfMemoryError
NegativeArraySizeException
public static final Object allocateArrayAlign8(int length, int size, Object vtable) throws OutOfMemoryError, NegativeArraySizeException
OutOfMemoryError
NegativeArraySizeException
public static final int freeMemory()
OutOfMemoryError
public static final int totalMemory()
OutOfMemoryError
public static final void collect()
public static final boolean isValidHeapAddress(Address a)
public static final void processObjectReference(Address a)
public static final void processPossibleObjectReference(Address a)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |