From 79bcc7b8ec577dad592dc3f575c15d1bdeb65b19 Mon Sep 17 00:00:00 2001 From: Richard Reingruber Date: Wed, 8 Oct 2025 15:56:58 +0000 Subject: [PATCH] 8369257: PPC: compiler/whitebox/RelocateNMethodMultiplePaths.java fails with assertion Reviewed-by: mdoerr --- src/hotspot/cpu/ppc/nativeInst_ppc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/cpu/ppc/nativeInst_ppc.cpp b/src/hotspot/cpu/ppc/nativeInst_ppc.cpp index 4e93992f413..ebdfd9a57d6 100644 --- a/src/hotspot/cpu/ppc/nativeInst_ppc.cpp +++ b/src/hotspot/cpu/ppc/nativeInst_ppc.cpp @@ -402,7 +402,7 @@ void NativePostCallNop::make_deopt() { bool NativePostCallNop::patch(int32_t oopmap_slot, int32_t cb_offset) { int32_t i2, i1; assert(is_aligned(cb_offset, 4), "cb offset alignment does not match instruction alignment"); - assert(!decode(i1, i2), "already patched"); + assert(!decode(i1, i2) || NMethodRelocation, "already patched"); cb_offset = cb_offset >> 2; if (((oopmap_slot & ppc_oopmap_slot_mask) != oopmap_slot) || ((cb_offset & ppc_cb_offset_mask) != cb_offset)) {