Clean backport from mainline jdk repo to jdk21 for the fix of: [8303086](https://bugs.openjdk.org/browse/JDK-8303086): SIGSEGV in JavaThread::is_interp_only_mode()
Testing: - TBD: mach5 tiers 1-5 ------------- Commit messages: - Backport 971c2efb698065c65dcf7373d8c3027f58d5f503 Changes: https://git.openjdk.org/jdk21/pull/96/files Webrev: https://webrevs.openjdk.org/?repo=jdk21&pr=96&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8303086 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk21/pull/96.diff Fetch: git fetch https://git.openjdk.org/jdk21.git pull/96/head:pull/96 PR: https://git.openjdk.org/jdk21/pull/96