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

Martin Doerr mdoerr at openjdk.org
Mon Nov 17 13:32:21 UTC 2025


On Thu, 13 Nov 2025 23:49:28 GMT, Ruben <duke at openjdk.org> wrote:

>> 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.
>
> Ruben has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add an assertion to detect out of bounds access in post-call NOP checks

I think assertions would be sufficient in C1 instead of guarantee. But, ok. I'll put it into our test queue.

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

Marked as reviewed by mdoerr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28192#pullrequestreview-3472719238


More information about the hotspot-dev mailing list