mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Prevent leaks of ChronicleMaps though thread local contexts and supplimental OldDeletedEntriesCleanupThread, add MemoryLeakTest
This commit is contained in:
@@ -92,6 +92,11 @@ public abstract class CompactOffHeapLinearHashTable {
|
||||
this.valueMask = mask(valueBits);
|
||||
}
|
||||
|
||||
/**
|
||||
* Must not store {@code h} in a field, to avoid memory leaks.
|
||||
*
|
||||
* @see net.openhft.chronicle.hash.impl.stage.hash.Chaining#initMap
|
||||
*/
|
||||
CompactOffHeapLinearHashTable(VanillaChronicleHash h) {
|
||||
this(h.tierHashLookupCapacity, h.tierHashLookupSlotSize, h.tierHashLookupKeyBits,
|
||||
h.tierHashLookupValueBits);
|
||||
|
||||
Reference in New Issue
Block a user