Skip to content

Commit be67aaa

Browse files
committed
8262726: AArch64: C1 StubAssembler::call_RT can corrupt stack
Reviewed-by: aph
1 parent 0f6122b commit be67aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int StubAssembler::call_RT(Register oop_result1, Register metadata_result, addre
147147
if (arg1 == c_rarg2 || arg1 == c_rarg3 ||
148148
arg2 == c_rarg1 || arg2 == c_rarg3 ||
149149
arg3 == c_rarg1 || arg3 == c_rarg2) {
150-
stp(arg3, arg2, Address(pre(sp, 2 * wordSize)));
150+
stp(arg3, arg2, Address(pre(sp, -2 * wordSize)));
151151
stp(arg1, zr, Address(pre(sp, -2 * wordSize)));
152152
ldp(c_rarg1, zr, Address(post(sp, 2 * wordSize)));
153153
ldp(c_rarg3, c_rarg2, Address(post(sp, 2 * wordSize)));

0 commit comments

Comments
 (0)