< prev index next >

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

Print this page
rev 10742 : Make fields used in lock-free algorithms volatile

@@ -382,11 +382,11 @@
 HeapWord*
 HeapRegion::
 oops_on_card_seq_iterate_careful(MemRegion mr,
                                  FilterOutOfRegionClosure* cl,
                                  bool filter_young,
-                                 jbyte* card_ptr) {
+                                 volatile jbyte* card_ptr) {
   // Currently, we should only have to clean the card if filter_young
   // is true and vice versa.
   if (filter_young) {
     assert(card_ptr != NULL, "pre-condition");
   } else {

@@ -1091,6 +1091,5 @@
   _top = bottom();
   _scan_top = bottom();
   set_saved_mark_word(NULL);
   reset_bot();
 }
-
< prev index next >