| Modifier and Type | Field and Description |
|---|---|
protected long |
chunkSize |
protected long |
entrySize |
protected long |
head |
protected static long |
headOffset |
protected long |
totalMemory |
| Constructor and Description |
|---|
FixedSizeAllocator(long entrySize,
long chunkSize) |
FixedSizeAllocator(long startAddress,
long totalMemory,
long entrySize) |
FixedSizeAllocator(long startAddress,
long totalMemory,
long entrySize,
long head) |
| Modifier and Type | Method and Description |
|---|---|
long |
calloc(int size) |
long |
chunkSize() |
int |
countFreePages() |
long |
entrySize() |
void |
free(long entry) |
protected long |
getMemoryFromSystem(long size) |
long |
malloc() |
long |
malloc(int size) |
static void |
relocate(long currentPtr,
long delta) |
long |
totalMemory() |
void |
verify()
Verify the layout of the heap.
|
protected static final long headOffset
protected volatile long head
protected long entrySize
protected long chunkSize
protected long totalMemory
public FixedSizeAllocator(long entrySize,
long chunkSize)
public FixedSizeAllocator(long startAddress,
long totalMemory,
long entrySize)
public FixedSizeAllocator(long startAddress,
long totalMemory,
long entrySize,
long head)
public static void relocate(long currentPtr,
long delta)
public int countFreePages()
public long entrySize()
public long chunkSize()
public long totalMemory()
public long malloc()
public void verify()
Allocatorprotected long getMemoryFromSystem(long size)
Copyright © 2019. All rights reserved.