RFR: 8344074: RISC-V: C1: More accurate _exception_handler_size and _deopt_handler_size
Fei Yang
fyang at openjdk.org
Thu Nov 14 00:56:58 UTC 2024
On Wed, 13 Nov 2024 00:38:11 GMT, Fei Yang <fyang at openjdk.org> wrote:
> Hi, please review this small change.
>
> I find that the reserved size for these two handlers are not accurate and are larger than needed. For `_exception_handler_size`, the used size is only 20 bytes for release build and 126 bytes for debug build (with -XX:+VerifyOops). Considering that the exception handler is not trivial, I reserved a little bit more than needed for release build (32 bytes). For `_deopt_handler_size`, `far_jump` will always emit two instructions.
>
> Testing on linux-riscv64:
> - [x] tier1 (release)
> - [x] hotspot:tier1 (fastdebug)
Thanks all for the review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22053#issuecomment-2475125986
More information about the hotspot-compiler-dev
mailing list