Backport of https://github.com/openjdk/jdk/commit/075fed91bd144d94328e198b41ea2946961940e9 which was reviewed by Alan Bateman.
The backport is not clean as one item in mainline does not exist in JDK 22. Thanks. ------------- Commit messages: - Backport 075fed91bd144d94328e198b41ea2946961940e9 Changes: https://git.openjdk.org/jdk22/pull/48/files Webrev: https://webrevs.openjdk.org/?repo=jdk22&pr=48&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8323241 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk22/pull/48.diff Fetch: git fetch https://git.openjdk.org/jdk22.git pull/48/head:pull/48 PR: https://git.openjdk.org/jdk22/pull/48