From d1edda8ff52e172a85d102d7d5062b9cc401beea Mon Sep 17 00:00:00 2001 From: Fei Yang Date: Tue, 16 Aug 2022 07:18:30 +0000 Subject: [PATCH] 8292338: aarch64: Use cbnz instruction in gen_continuation_enter when possible Reviewed-by: haosun, shade, aph --- src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp b/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp index 55a49594fb3fe..2640157a818a6 100644 --- a/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp +++ b/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp @@ -1050,8 +1050,7 @@ static void gen_continuation_enter(MacroAssembler* masm, fill_continuation_entry(masm); - __ cmp(c_rarg2, (u1)0); - __ br(Assembler::NE, call_thaw); + __ cbnz(c_rarg2, call_thaw); address mark = __ pc(); __ trampoline_call(resolve); @@ -1076,8 +1075,7 @@ static void gen_continuation_enter(MacroAssembler* masm, fill_continuation_entry(masm); - __ cmp(c_rarg2, (u1)0); - __ br(Assembler::NE, call_thaw); + __ cbnz(c_rarg2, call_thaw); address mark = __ pc(); __ trampoline_call(resolve);