Backport to JDK 27. --------- - [X] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
------------- Commit messages: - Backport 1ad2db7ad11e5158177b10d5e8edbc0a8547f084 Changes: https://git.openjdk.org/jdk/pull/31597/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31597&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8386473 Stats: 62 lines in 3 files changed: 40 ins; 17 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/31597.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31597/head:pull/31597 PR: https://git.openjdk.org/jdk/pull/31597
