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

Tagir F. Valeev tvaleev at openjdk.org
Wed Feb 26 10:11:07 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 pull request has now been integrated.

Changeset: a4310464
Author:    Tagir F. Valeev <tvaleev at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a43104640420fbd82868788ccd8a3a8e938f365a
Stats:     4 lines in 1 file changed: 0 ins; 0 del; 4 mod

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

Reviewed-by: liach, skuksenko

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

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


More information about the core-libs-dev mailing list