RFR: 8350518: org.openjdk.bench.java.util.TreeMapUpdate.compute fails with "java.lang.IllegalArgumentException: key out of range"

Tagir F. Valeev tvaleev at openjdk.org
Mon Feb 24 08:49:25 UTC 2025


It appears that the benchmark was erroneous. The combination of "tailMap" mode and comparator = true didn't work correctly, as the comparator is descending. This PR changes the benchmark to use headMap instead of tailMap in comparator mode. The "tailMap" mode is renamed to "subMap". Now, all parameter combinations work correctly.

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

Commit messages:
 - Fix tailMap mode

Changes: https://git.openjdk.org/jdk/pull/23744/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23744&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350518
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/23744.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23744/head:pull/23744

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


More information about the core-libs-dev mailing list