Skip to content

Commit

Permalink
8244667: Shenandoah: SBC2Support::test_gc_state takes loop for wrong …
Browse files Browse the repository at this point in the history
…control

Reviewed-by: rkennke
  • Loading branch information
shipilev committed May 8, 2020
1 parent 692f753 commit 15d7ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
Expand Up @@ -879,7 +879,7 @@ void ShenandoahBarrierC2Support::test_gc_state(Node*& ctrl, Node* raw_mem, Node*
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);
Expand Down

0 comments on commit 15d7ef7

Please sign in to comment.