< prev index next >

src/share/vm/gc/g1/g1CollectedHeap.cpp

Print this page
rev 9974 : add missing memory barrier

@@ -2549,10 +2549,11 @@
   if (worker_i > 0 &&
       _worker_cset_start_region_time_stamp[worker_i - 1] == gc_time_stamp) {
     // Previous workers starting region is valid
     // so let's iterate from there
     start_ind = (cs_size * (worker_i - 1)) / active_workers;
+    OrderAccess::loadload();
     result = _worker_cset_start_region[worker_i - 1];
   }
 
   for (uint i = start_ind; i < end_ind; i++) {
     result = result->next_in_collection_set();
< prev index next >