< prev index next >

src/share/vm/gc/shenandoah/shenandoahHeap.inline.hpp

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

@@ -186,11 +186,11 @@
     return heap_oop;
   }
 }
 
 inline bool ShenandoahHeap::cancelled_concgc() const {
-  bool cancelled = _cancelled_concgc;
+  bool cancelled = (bool) OrderAccess::load_acquire((jbyte*) &_cancelled_concgc);
   return cancelled;
 }
 
 inline HeapWord* ShenandoahHeap::allocate_from_gclab(Thread* thread, size_t size) {
   if (UseTLAB) {
< prev index next >