changeset 59220:8cb6bb7de14c

8244667: Shenandoah: SBC2Support::test_gc_state takes loop for wrong control Reviewed-by: rkennke
author shade
date Fri, 08 May 2020 23:17:17 +0200
parents 4c6190f99f3a
children dd652a1b2a39
files src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Fri May 08 08:23:35 2020 -0700
+++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Fri May 08 23:17:17 2020 +0200
@@ -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);