< prev index next >

src/share/vm/gc/shenandoah/shenandoahHeap.cpp

Print this page
rev 12191 : [mq]: cancel.patch

@@ -2050,12 +2050,11 @@
 
 void ShenandoahHeap::cancel_concgc() {
   // only report it once
   if (!_cancelled_concgc) {
     log_info(gc)("Cancelling GC");
-    _cancelled_concgc = true;
-    OrderAccess::fence();
+    OrderAccess::release_store(&_cancelled_concgc, true);
     _shenandoah_policy->report_concgc_cancelled();
   }
 
 }
 
< prev index next >