Skip to content
Permalink
Browse files
8262726: AArch64: C1 StubAssembler::call_RT can corrupt stack
Reviewed-by: aph
  • Loading branch information
nick-arm committed Mar 2, 2021
1 parent 0f6122b commit be67aaabe63a4440c64bf79b9fa0d1394ac87ddf
Showing 1 changed file with 1 addition and 1 deletion.
@@ -147,7 +147,7 @@ int StubAssembler::call_RT(Register oop_result1, Register metadata_result, addre
if (arg1 == c_rarg2 || arg1 == c_rarg3 ||
arg2 == c_rarg1 || arg2 == c_rarg3 ||
arg3 == c_rarg1 || arg3 == c_rarg2) {
stp(arg3, arg2, Address(pre(sp, 2 * wordSize)));
stp(arg3, arg2, Address(pre(sp, -2 * wordSize)));
stp(arg1, zr, Address(pre(sp, -2 * wordSize)));
ldp(c_rarg1, zr, Address(post(sp, 2 * wordSize)));
ldp(c_rarg3, c_rarg2, Address(post(sp, 2 * wordSize)));

0 comments on commit be67aaa

Please sign in to comment.