This is a clean backport and addresses a fairly critical issue where in a mistimed heap dump may cause heap corruption or vm crashes for Shenandoah GC.
------------- Commit messages: - Backport 6a29a8110ec38b4adc8163ba8651cbc935353f1d Changes: https://git.openjdk.org/jdk/pull/23221/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23221&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8345750 Stats: 23 lines in 4 files changed: 15 ins; 1 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/23221.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23221/head:pull/23221 PR: https://git.openjdk.org/jdk/pull/23221