< prev index next >
src/share/vm/gc/g1/g1HotCardCache.hpp
Print this page
rev 10742 : Make fields used in lock-free algorithms volatile
@@ -61,11 +61,11 @@
G1CardCounts _card_counts;
// The card cache table
- jbyte** _hot_cache;
+ volatile jbyte** _hot_cache;
size_t _hot_cache_size;
int _hot_cache_par_chunk_size;
@@ -106,11 +106,11 @@
// added to the hot card cache.
// If there is enough room in the hot card cache for the card we're
// adding, NULL is returned and no further action in needed.
// If we evict a card from the cache to make room for the new card,
// the evicted card is then returned for refinement.
- jbyte* insert(jbyte* card_ptr);
+ volatile jbyte* insert(volatile jbyte* card_ptr);
// Refine the cards that have delayed as a result of
// being in the cache.
void drain(CardTableEntryClosure* cl, uint worker_i);
< prev index next >