From bf39b184ca8aabcc51dc6ea4eee046c69b278710 Mon Sep 17 00:00:00 2001 From: Roland Westrelin Date: Tue, 4 Oct 2022 08:08:38 +0000 Subject: [PATCH] 8288302: Shenandoah: SIGSEGV in vm maybe related to jit compiling xerces Reviewed-by: shade, thartmann --- src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp b/src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp index 04674d99d56..ca08f1ab698 100644 --- a/src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp +++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp @@ -1080,7 +1080,8 @@ Node* ShenandoahBarrierSetC2::ideal_node(PhaseGVN* phase, Node* n, bool can_resh } else if (can_reshape && n->Opcode() == Op_If && ShenandoahBarrierC2Support::is_heap_stable_test(n) && - n->in(0) != NULL) { + n->in(0) != NULL && + n->outcnt() == 2) { Node* dom = n->in(0); Node* prev_dom = n; int op = n->Opcode();