public class MemoryAddressHash extends Object
| Constructor and Description |
|---|
MemoryAddressHash(int pointers,
OffHeapMemoryAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
deallocate() |
long |
getMemoryAddressOffset(int offset) |
long |
getMemoryAddressOffsetNoTraceIfAbsent(int offset) |
int |
getPointerCount() |
void |
putMemoryAddressOffset(int offset,
long address) |
LongStream |
removeAll()
Removes all the address lookups by setting them to 0.
|
LongStream |
removeAll(int offset,
int count)
Removes all the address lookups by setting them to 0 within the given offset, limiting the removal to only
a specific count of addresses.
|
LongStream |
toStream()
Returns a stream of longs that are all of the various memory locations
|
public MemoryAddressHash(int pointers,
OffHeapMemoryAllocator allocator)
public void putMemoryAddressOffset(int offset,
long address)
public long getMemoryAddressOffset(int offset)
public long getMemoryAddressOffsetNoTraceIfAbsent(int offset)
public void deallocate()
public LongStream toStream()
public LongStream removeAll()
public LongStream removeAll(int offset, int count)
offset - offset into the blockcount - how many pointers to look atpublic int getPointerCount()
Copyright © 2022 JBoss by Red Hat. All rights reserved.