RFR: 8350518: org.openjdk.bench.java.util.TreeMapUpdate.compute fails with "java.lang.IllegalArgumentException: key out of range"
Chen Liang
liach at openjdk.org
Mon Feb 24 19:31:56 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.
This file needs a copyright year update, from `(c) 2020, Oracle` to `(c) 2020, 2025, Oracle`.
-------------
PR Review: https://git.openjdk.org/jdk/pull/23744#pullrequestreview-2638249150
More information about the core-libs-dev
mailing list