RFR: 8371458: [REDO] - Remove exception handler stub code in C2

Ruben duke at openjdk.org
Fri Nov 7 11:14:58 UTC 2025


The original fix [JDK-8365047](https://bugs.openjdk.org/browse/JDK-8365047) was backed out by [JDK-8371388](https://bugs.openjdk.org/browse/JDK-8371388), this is the REDO.

The C2 exception handler stub code is only a trampoline to the generated exception handler blob. This change removes the extra step on the way to the generated blob.

According to some comments in the source code, the exception handler stub code used to be patched upon deoptimization, however presumably these comments are outdated as the patching upon deoptimization happens for post-call NOPs only.

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

Commit messages:
 - x86: Fix post-call NOP check access outside code blob
 - Rename deoptHandlerOffsetField -> deoptHandlerEntryOffsetField
 - Merge from the main branch
 - Address review comments and fix a mistype
 - Check for NOP and MOVK separately in NativePostCallNop
 - Test for deoptimization in virtual threads
 - Merge from the main branch
 - Address review comments
 - Address review comments
 - Address review comments
 - ... and 6 more: https://git.openjdk.org/jdk/compare/1922c4fd...7bb43523

Changes: https://git.openjdk.org/jdk/pull/28192/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28192&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371458
  Stats: 571 lines in 42 files changed: 269 ins; 216 del; 86 mod
  Patch: https://git.openjdk.org/jdk/pull/28192.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28192/head:pull/28192

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


More information about the hotspot-dev mailing list