< prev index next >
src/share/vm/gc/g1/g1ParScanThreadState.hpp
Print this page
rev 10742 : Make fields used in lock-free algorithms volatile
@@ -104,11 +104,11 @@
// is the to-space, we don't need to include it in the Rset updates.
if (!HeapRegion::is_in_same_region(p, o) && !from->is_young()) {
size_t card_index = ctbs()->index_for(p);
// If the card hasn't been added to the buffer, do it.
if (ctbs()->mark_card_deferred(card_index)) {
- dirty_card_queue().enqueue((jbyte*)ctbs()->byte_for_index(card_index));
+ dirty_card_queue().enqueue((volatile jbyte*)ctbs()->byte_for_index(card_index));
}
}
}
G1EvacuationRootClosures* closures() { return _closures; }
< prev index next >