| Constructor and Description |
|---|
LongBestFitAllocator(OffHeapStorageArea storage)
Create a best fit allocator backed by the given OffHeapStorageArea.
|
| Modifier and Type | Method and Description |
|---|---|
long |
allocate(long size) |
void |
clear() |
void |
expand(long increase) |
void |
free(long address) |
long |
getLastUsedAddress() |
long |
getLastUsedPointer() |
long |
getMaximumAddress() |
int |
getMinimalSize() |
Iterator<Long> |
iterator() |
long |
occupied() |
String |
toString() |
void |
validateAllocator()
Debugging Support
|
long |
validateMallocedPointer(long m) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic LongBestFitAllocator(OffHeapStorageArea storage)
storage - source of ByteBuffer instancespublic void validateAllocator()
validateAllocator in interface Allocatorpublic long validateMallocedPointer(long m)
public long getLastUsedPointer()
getLastUsedPointer in interface Allocatorpublic long getLastUsedAddress()
getLastUsedAddress in interface Allocatorpublic int getMinimalSize()
getMinimalSize in interface Allocatorpublic long getMaximumAddress()
getMaximumAddress in interface AllocatorCopyright © 2015–2024. All rights reserved.