Skip to content

Commit

Permalink
8305247: On RISC-V generate_fixed_frame() sometimes generate a relati…
Browse files Browse the repository at this point in the history
…vized locals value which is way too large

Reviewed-by: fyang, rehn
  • Loading branch information
fbredber authored and robehn committed Apr 3, 2023
1 parent 790aced commit 33d09e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ void TemplateInterpreterGenerator::generate_fixed_frame(bool native_call) {
__ ld(xcpool, Address(xcpool, ConstantPool::cache_offset_in_bytes()));
__ sd(xcpool, Address(sp, 3 * wordSize));
__ sub(t0, xlocals, fp);
__ srli(t0, t0, Interpreter::logStackElementSize); // t0 = xlocals - fp();
__ srai(t0, t0, Interpreter::logStackElementSize); // t0 = xlocals - fp();
// Store relativized xlocals, see frame::interpreter_frame_locals().
__ sd(t0, Address(sp, 2 * wordSize));

Expand Down

1 comment on commit 33d09e5

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.