From 6f3e3fd0d4f5e80e3fdbd26be6483c672479802a Mon Sep 17 00:00:00 2001 From: Martin Doerr Date: Tue, 3 Sep 2024 09:27:59 +0000 Subject: [PATCH] 8339411: [PPC64] cmpxchgw/h/b doesn't handle external Label Reviewed-by: lucy, mbaesken --- src/hotspot/cpu/ppc/macroAssembler_ppc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp b/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp index 0af384a36fa..faca90990c8 100644 --- a/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp +++ b/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp @@ -1737,7 +1737,7 @@ void MacroAssembler::cmpxchg_generic(ConditionRegister flag, Register dest_curre cmpxchg_loop_body(flag, dest_current_value, compare_value, exchange_value, addr_base, tmp1, tmp2, retry, failed, cmpxchgx_hint, size); - if (!weak || use_result_reg) { + if (!weak || use_result_reg || failed_ext) { if (UseStaticBranchPredictionInCompareAndSwapPPC64) { bne_predict_not_taken(CCR0, weak ? failed : retry); // StXcx_ sets CCR0. } else {