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

Markus Grönlund mgronlun at openjdk.org
Tue Apr 1 20:06:52 UTC 2025


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

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

Commit messages:
 - include guard
 - remote iteration
 - reduced table size
 - 8353431

Changes: https://git.openjdk.org/jdk/pull/24366/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24366&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8353431
  Stats: 334 lines in 12 files changed: 224 ins; 69 del; 41 mod
  Patch: https://git.openjdk.org/jdk/pull/24366.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24366/head:pull/24366

PR: https://git.openjdk.org/jdk/pull/24366


More information about the hotspot-jfr-dev mailing list