# HG changeset patch # User shade # Date 1588959014 -7200 # Fri May 08 19:30:14 2020 +0200 # Node ID 4080cca2d00c7c9829d1989eaa045ed8b584ec5d # Parent 730eb308516a12647101f937fc9ba569201c4f7b 8244667: Shenandoah: SBC2Support::test_gc_state takes loop for wrong control Reviewed-by: XXX diff --git a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp --- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp +++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp @@ -879,7 +879,7 @@ ctrl = new IfTrueNode(gc_state_iff); test_fail_ctrl = new IfFalseNode(gc_state_iff); - IdealLoopTree* loop = phase->get_loop(ctrl); + IdealLoopTree* loop = phase->get_loop(old_ctrl); phase->register_control(gc_state_iff, loop, old_ctrl); phase->register_control(ctrl, loop, gc_state_iff); phase->register_control(test_fail_ctrl, loop, gc_state_iff);