RFR: 8371306: JDK-8367002 behavior might not match existing HotSpot behavior.

Dean Long dlong at openjdk.org
Tue Nov 25 20:19:27 UTC 2025


When deoptimizing to the interpreter, we need to restore the thrown exception to the original, otherwise it might be caught by the wrong handler.  In the test case, that means restoring the original ArithmeticException instead of keeping the new/recursive IllegalAccessError.

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

Commit messages:
 - Merge branch 'openjdk:master' into 8371306
 - expose regression from past behavior
 - restore original exception

Changes: https://git.openjdk.org/jdk/pull/28497/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28497&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371306
  Stats: 13 lines in 3 files changed: 10 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/28497.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28497/head:pull/28497

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


More information about the hotspot-dev mailing list