Skip to content

Commit 33d09e5

Browse files
fbredberrobehn
authored andcommitted
8305247: On RISC-V generate_fixed_frame() sometimes generate a relativized locals value which is way too large
Reviewed-by: fyang, rehn
1 parent 790aced commit 33d09e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ void TemplateInterpreterGenerator::generate_fixed_frame(bool native_call) {
761761
__ ld(xcpool, Address(xcpool, ConstantPool::cache_offset_in_bytes()));
762762
__ sd(xcpool, Address(sp, 3 * wordSize));
763763
__ sub(t0, xlocals, fp);
764-
__ srli(t0, t0, Interpreter::logStackElementSize); // t0 = xlocals - fp();
764+
__ srai(t0, t0, Interpreter::logStackElementSize); // t0 = xlocals - fp();
765765
// Store relativized xlocals, see frame::interpreter_frame_locals().
766766
__ sd(t0, Address(sp, 2 * wordSize));
767767

0 commit comments

Comments
 (0)