News for hackers. Stuff that matters.
Re:Designing a new concurrent data structure by cafxx on Tuesday August 29, 2023 @03:18PM (#37312528)
Or you could simply invoke a GC periodically (or every N times a key is removed from the map, or similar schemes).

Another simple way, if we don't like the idea of triggering GCs manually,is to allocate the same buffer both off-heap and on-heap: use the off-heap one for actual key storage, and the on-heap one just to generate heap memory pressure.

There are no comments on this comment yet.