|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.Allocator.DefaultCodeAllocator
public abstract class DefaultCodeAllocator
Provides access functions to the default code allocator. If the default_allocator is set, it is used as the default global code allocator. Otherwise, the code allocator of the current thread is used.
Field Summary | |
---|---|
static jq_StaticField |
_default_allocator
|
static CodeAllocator |
default_allocator
The default global code allocator. |
Constructor Summary | |
---|---|
DefaultCodeAllocator()
|
Method Summary | |
---|---|
static CodeAllocator |
def()
Gets the default code allocator for the current thread. |
static CodeAllocator.x86CodeBuffer |
getCodeBuffer(int estimatedSize,
int offset,
int alignment)
Get a code buffer from the default code allocator. |
static void |
init()
Initialize the default code allocator. |
static void |
patchAbsolute(Address code,
Address heap)
Patch the code address to point to the given heap address in the default code allocator. |
static void |
patchRelativeOffset(CodeAddress code,
CodeAddress target)
Patch the code address to be a relative offset to another code address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static CodeAllocator default_allocator
public static final jq_StaticField _default_allocator
Constructor Detail |
---|
public DefaultCodeAllocator()
Method Detail |
---|
public static final CodeAllocator def()
public static final void init()
public static final CodeAllocator.x86CodeBuffer getCodeBuffer(int estimatedSize, int offset, int alignment)
estimatedSize
- offset
- alignment
-
public static final void patchAbsolute(Address code, Address heap)
code
- heap
- public static final void patchRelativeOffset(CodeAddress code, CodeAddress target)
code
- target
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |