RFR: 8365047: Remove exception handler stub code in C2 [v4]

Ruben duke at openjdk.org
Fri Sep 12 16:36:56 UTC 2025


> 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.

Ruben has updated the pull request incrementally with two additional commits since the last revision:

 - Offset the deoptimization handler entry point
   
   Change-Id: I596317ec6a364b341e4642636fa5cf08f87ed722
 - Revert "Ensure stub code is not adjacent to a call"

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26678/files
  - new: https://git.openjdk.org/jdk/pull/26678/files/1f6546e9..47178248

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26678&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26678&range=02-03

  Stats: 144 lines in 20 files changed: 41 ins; 34 del; 69 mod
  Patch: https://git.openjdk.org/jdk/pull/26678.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26678/head:pull/26678

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


More information about the hotspot-dev mailing list