< prev index next >

src/hotspot/share/opto/phaseX.cpp

Print this page
rev 52710 : Upstream/backport Shenandoah to JDK11u

@@ -2104,10 +2104,14 @@
       }
       break;
     default:
       break;
     }
+    if (UseShenandoahGC) {
+      // TODO: Should we call this for ZGC as well?
+      BarrierSet::barrier_set()->barrier_set_c2()->enqueue_useful_gc_barrier(igvn->_worklist, old);
+    }
   }
 
 }
 
 //-------------------------------replace_by-----------------------------------
< prev index next >