Skip to content
Permalink
Browse files
8262726: AArch64: C1 StubAssembler::call_RT can corrupt stack
Backport-of: be67aaa
  • Loading branch information
Sergey Nazarkin authored and Yuri Nesterenko committed Mar 12, 2021
1 parent 55f25d1 commit 5de1b465778fb2b64d6fe7941adf18d9fcd50f0f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
@@ -144,7 +144,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)));

1 comment on commit 5de1b46

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 5de1b46 Mar 12, 2021

Please sign in to comment.