RFR: 8353431: JFR: Sets to use hashmap instead of binary search as backend

Erik Gahlin egahlin at openjdk.org
Tue Apr 8 18:20:16 UTC 2025


On Tue, 1 Apr 2025 20:01:10 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> Greetings,
> 
> This enhancement is a simple set abstraction using a ResizeableResourceHashtable as a backend.
> 
> It provides two specializations, JfrCHeapTraceIdSet and JfrResourceAreaTraceIdSet, both tailored for keys of type traceid.
> 
> Sorted GrowableArrays used as sets have been replaced. 
> 
> Testing: jdk_jfr, stress testing
> 
> Thanks
> Markus

Nice cleanup!

-------------

Marked as reviewed by egahlin (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24366#pullrequestreview-2751008960


More information about the hotspot-jfr-dev mailing list