Package org.infinispan.container.offheap
Class MemoryAddressHash
java.lang.Object
org.infinispan.container.offheap.MemoryAddressHash
- Since:
- 9.0
- Author:
- wburns
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlonggetMemoryAddressOffset(int offset) longgetMemoryAddressOffsetNoTraceIfAbsent(int offset) intvoidputMemoryAddressOffset(int offset, long address) Removes all the address lookups by setting them to 0.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.toStream()Returns a stream of longs that are all of the various memory locations
-
Constructor Details
-
MemoryAddressHash
-
-
Method Details
-
putMemoryAddressOffset
public void putMemoryAddressOffset(int offset, long address) -
getMemoryAddressOffset
public long getMemoryAddressOffset(int offset) -
getMemoryAddressOffsetNoTraceIfAbsent
public long getMemoryAddressOffsetNoTraceIfAbsent(int offset) -
deallocate
public void deallocate() -
toStream
Returns a stream of longs that are all of the various memory locations- Returns:
- stream of the various memory locations
-
removeAll
Removes all the address lookups by setting them to 0. This method returns a LongStream that contains all of valid (non zero) addresses that were present during this operation.- Returns:
- stream with the valid memory pointers to stored values
-
removeAll
Removes all the address lookups by setting them to 0 within the given offset, limiting the removal to only a specific count of addresses. This method returns a LongStream that contains all of valid (non zero) addresses that were present during this operation.- Parameters:
offset- offset into the blockcount- how many pointers to look at- Returns:
- stream with the valid memory pointers to stored values
-
getPointerCount
public int getPointerCount()
-