< prev index next >

src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp

Print this page
rev 59218 : 8244667: Shenandoah: SBC2Support::test_gc_state takes loop for wrong control
Reviewed-by: XXX

*** 877,887 **** IfNode* gc_state_iff = new IfNode(old_ctrl, gc_state_bool, PROB_UNLIKELY(0.999), COUNT_UNKNOWN); ctrl = new IfTrueNode(gc_state_iff); test_fail_ctrl = new IfFalseNode(gc_state_iff); ! IdealLoopTree* loop = phase->get_loop(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); phase->register_new_node(thread, old_ctrl); --- 877,887 ---- IfNode* gc_state_iff = new IfNode(old_ctrl, gc_state_bool, PROB_UNLIKELY(0.999), COUNT_UNKNOWN); ctrl = new IfTrueNode(gc_state_iff); test_fail_ctrl = new IfFalseNode(gc_state_iff); ! 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); phase->register_new_node(thread, old_ctrl);
< prev index next >