Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8259619: C1: 3-arg StubAssembler::call_RT stack-use condition is inco…
…rrect

Reviewed-by: vlivanov, kvn
Backport-of: ce9451208772534efd532a6bc44c226a419f570d
  • Loading branch information
TobiHartmann committed Feb 2, 2021
1 parent cddbb15 commit 58ff0df2bb771c3101b8ef68849067461d86c765
Showing 2 changed files with 4 additions and 4 deletions.
@@ -142,8 +142,8 @@ int StubAssembler::call_RT(Register oop_result1, Register metadata_result, addre
int StubAssembler::call_RT(Register oop_result1, Register metadata_result, address entry, Register arg1, Register arg2, Register arg3) {
// if there is any conflict use the stack
if (arg1 == c_rarg2 || arg1 == c_rarg3 ||
arg2 == c_rarg1 || arg1 == c_rarg3 ||
arg3 == c_rarg1 || arg1 == c_rarg2) {
arg2 == c_rarg1 || arg2 == c_rarg3 ||
arg3 == c_rarg1 || arg3 == c_rarg2) {
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)));
@@ -174,8 +174,8 @@ int StubAssembler::call_RT(Register oop_result1, Register metadata_result, addre
#ifdef _LP64
// if there is any conflict use the stack
if (arg1 == c_rarg2 || arg1 == c_rarg3 ||
arg2 == c_rarg1 || arg1 == c_rarg3 ||
arg3 == c_rarg1 || arg1 == c_rarg2) {
arg2 == c_rarg1 || arg2 == c_rarg3 ||
arg3 == c_rarg1 || arg3 == c_rarg2) {
push(arg3);
push(arg2);
push(arg1);

1 comment on commit 58ff0df

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 58ff0df Feb 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.