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

Sergey Kuksenko skuksenko at openjdk.org
Mon Feb 24 17:32:58 UTC 2025


On Mon, 24 Feb 2025 08:44:00 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:

> 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.

Marked as reviewed by skuksenko (Committer).

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

PR Review: https://git.openjdk.org/jdk/pull/23744#pullrequestreview-2637919424


More information about the core-libs-dev mailing list