Clean backport of P3 issue JDK-8322846. -------------
Commit messages: - Backport faa9c6909dda635eb008b9dada6e06fca47c17d6 Changes: https://git.openjdk.org/jdk22/pull/71/files Webrev: https://webrevs.openjdk.org/?repo=jdk22&pr=71&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8322846 Stats: 128 lines in 3 files changed: 100 ins; 12 del; 16 mod Patch: https://git.openjdk.org/jdk22/pull/71.diff Fetch: git fetch https://git.openjdk.org/jdk22.git pull/71/head:pull/71 PR: https://git.openjdk.org/jdk22/pull/71