RFR: 8346288: WB_IsIntrinsicAvailable fails if called with wrong compilation level

Daniel Skantz dskantz at openjdk.org
Thu Dec 19 07:30:07 UTC 2024


Fixes crashes when calling isIntrinsicAvailable with an incorrect compilation level or incompatible VM flag values.

Testing: T1-3.
Extra testing: called isIntrinsicAvailable with compLevel={-2, -1, ..., 5) without extra flags, and with -XX:-TieredCompilation -XX:TieredStopAtLevel={0, 1, ..., 4} and observed no crashes after the fix.

-------------

Commit messages:
 - fix

Changes: https://git.openjdk.org/jdk/pull/22823/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22823&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346288
  Stats: 9 lines in 1 file changed: 7 ins; 2 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22823.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22823/head:pull/22823

PR: https://git.openjdk.org/jdk/pull/22823


More information about the hotspot-dev mailing list