< prev index next >

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

Print this page
rev 52586 : Implement ShenandoahBarrierSetC2::step_over_gc_barrier() to fix lock elimination bug with Shenandoah

@@ -708,12 +708,11 @@
          strcmp(call->_name, "shenandoah_cas_obj") == 0 ||
          strcmp(call->_name, "shenandoah_wb_pre") == 0;
 }
 
 Node* ShenandoahBarrierSetC2::step_over_gc_barrier(Node* c) const {
-  // Currently not needed.
-  return c;
+  return ShenandoahBarrierNode::skip_through_barrier(c);
 }
 
 bool ShenandoahBarrierSetC2::array_copy_requires_gc_barriers(BasicType type) const {
   return false;
 }
< prev index next >