RFR: 8344074: RISC-V: C1: More accurate _exception_handler_size and _deopt_handler_size
Feilong Jiang
fjiang at openjdk.org
Wed Nov 13 15:06:43 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)
Looks good!
-------------
Marked as reviewed by fjiang (Committer).
PR Review: https://git.openjdk.org/jdk/pull/22053#pullrequestreview-2433529963
More information about the hotspot-compiler-dev
mailing list