[jdk17u-dev] RFR: 8350285: Shenandoah: Regression caused by ShenandoahLock under extreme contention

Daniel Huang duke at openjdk.org
Mon Jun 30 16:16:52 UTC 2025


Backport for ShenandoahLock performance regression issue. The fix involves sleeping for a very short duration every 3 yields, with the number of yields picked through manual testing. 

Clean backport, ran GHA sanity checks and locally tested `tier1`, `tier2`, and `hotspot_gc_shenandoah`. `test/jdk/java/nio/channels/FileChannel/directio/DirectIOTest.java` sometimes fails locally, but it also sometimes failed before the fix.

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

Commit messages:
 - Merge branch 'openjdk:master' into backport-JDK-8350285-shenandoahlock
 - Backport bd8ad309b59bceb3073a8d6411cca74e73508885

Changes: https://git.openjdk.org/jdk17u-dev/pull/3614/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3614&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350285
  Stats: 18 lines in 2 files changed: 15 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/3614.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3614/head:pull/3614

PR: https://git.openjdk.org/jdk17u-dev/pull/3614


More information about the jdk-updates-dev mailing list