RFR: 8365047: Remove exception handler stub code in C2 [v7]
Andrew Dinn
adinn at openjdk.org
Wed Oct 22 12:03:14 UTC 2025
On Wed, 22 Oct 2025 10:01:50 GMT, Andrew Haley <aph at openjdk.org> wrote:
> SafeFetch was designed specifically for problems like this one.
It was. However, I do not believe we should be in a situation where we are checking a call branch that is the last instruction in a code buffer -- which means there is no need to incur the cost of a SafeFetch. In particular, the failure that happened here only arose because a `far_jump` was used instead of a `far_call`. If a `far_call` had been generated then the value in lr would have been the last word in the buffer rather than a word off the end.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26678#issuecomment-3432012676
More information about the serviceability-dev
mailing list