Skip to content

Commit 90e9234

Browse files
committed
8344074: RISC-V: C1: More accurate _exception_handler_size and _deopt_handler_size
Reviewed-by: mli, fjiang
1 parent 3b28354 commit 90e9234

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/hotspot/cpu/riscv/c1_LIRAssembler_riscv.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,11 @@ friend class ArrayCopyStub;
7070
_call_stub_size = 11 * MacroAssembler::instruction_size +
7171
1 * MacroAssembler::instruction_size + wordSize,
7272
// See emit_exception_handler for detail
73-
// verify_not_null_oop + far_call + should_not_reach_here + invalidate_registers(DEBUG_ONLY)
74-
_exception_handler_size = DEBUG_ONLY(584) NOT_DEBUG(548), // or smaller
73+
_exception_handler_size = DEBUG_ONLY(256) NOT_DEBUG(32), // or smaller
7574
// See emit_deopt_handler for detail
76-
// auipc (1) + far_jump (6 or 2)
75+
// auipc (1) + far_jump (2)
7776
_deopt_handler_size = 1 * MacroAssembler::instruction_size +
78-
6 * MacroAssembler::instruction_size // or smaller
77+
2 * MacroAssembler::instruction_size
7978
};
8079

8180
void check_conflict(ciKlass* exact_klass, intptr_t current_klass, Register tmp,

0 commit comments

Comments
 (0)