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 with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
@@ -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)));

1 comment on commit be67aaa

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on be67aaa Mar 2, 2021

Please sign in to comment.