RFR: 8344074: RISC-V: More accurate _exception_handler_size and _deopt_handler_size
Fei Yang
fyang at openjdk.org
Wed Nov 13 11:44:48 UTC 2024
On Wed, 13 Nov 2024 11:05:58 GMT, Hamlin Li <mli at openjdk.org> wrote:
> Just an unrelated question, how did you get the instructions size of `emit_exception_handler`?
I simply modified the code dumping the real size (`code_offset() - offset`) immediately before the guarantee in `LIR_Assembler::emit_exception_handler` [1]. Thanks for the review!
[1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/riscv/c1_LIRAssembler_riscv.cpp#L310
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22053#issuecomment-2473336096
More information about the hotspot-compiler-dev
mailing list