The double check needs less time vs enter to 'synchronize' block when it not needed. This patch for the xml.validation workload for runs with 112 threads reports ~2.5% improvement on the server with Xeon 8480: orig: 1T - 433.64 ops/m, 112T - 17344.25 ops/m patched: 1T - 437.01 ops/m, 112T - 17771.94 ops/m
The tier1 and jaxp tests are OK with this patch. ------------- Commit messages: - 8346142 [perf] scalability issue for the specjvm2008::xml.validation workload Changes: https://git.openjdk.org/jdk/pull/22723/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22723&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8346142 Stats: 23 lines in 1 file changed: 6 ins; 0 del; 17 mod Patch: https://git.openjdk.org/jdk/pull/22723.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22723/head:pull/22723 PR: https://git.openjdk.org/jdk/pull/22723