mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8305247: On RISC-V generate_fixed_frame() sometimes generate a relativized locals value which is way too large
Reviewed-by: fyang, rehn
(cherry picked from commit 33d09e587a)
This commit is contained in:
committed by
Vitaly Provodin
parent
8493e97c92
commit
6a532b5bf0
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user