[jdk17u-dev] RFR: 8334482: Shenandoah: Deadlock when safepoint is pending during nmethods iteration

Aleksey Shipilev shade at openjdk.org
Tue Jul 30 13:33:47 UTC 2024


Fixes Shenandoah deadlock. There are few minor differences that make the backport unclean: 
 - the existence of `ICStubVerifier` that was removed in JDK 23 with [JDK-8322630](https://bugs.openjdk.org/browse/JDK-8322630)
 - the absence of [JDK-8273559](https://bugs.openjdk.org/browse/JDK-8273559) that added another argument to GC
 - the existence of `ShenandoahNMethodPurgeTask` that was removed along with Sweeper later

Additional testing:
 - [ ] Linux x86_64 server fastdebug, `all` with `-XX:+UseShenandoahGC`
 - [ ] Linux AArch64 server fastdebug, `all` with `-XX:+UseShenandoahGC`

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

Commit messages:
 - Backport 2aeb12ec03944c777d617d0be48982fd225b16e7

Changes: https://git.openjdk.org/jdk17u-dev/pull/2751/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2751&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8334482
  Stats: 79 lines in 4 files changed: 25 ins; 39 del; 15 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2751.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2751/head:pull/2751

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


More information about the jdk-updates-dev mailing list