src/hotspot/share/gc/g1/g1RegionMarkStatsCache.inline.hpp
changeset 59249 29b0d0b61615
parent 53244 9807daeb47c4
equal deleted inserted replaced
59248:e92153ed8bdc 59249:29b0d0b61615
    44 }
    44 }
    45 
    45 
    46 inline void G1RegionMarkStatsCache::evict(uint idx) {
    46 inline void G1RegionMarkStatsCache::evict(uint idx) {
    47   G1RegionMarkStatsCacheEntry* cur = &_cache[idx];
    47   G1RegionMarkStatsCacheEntry* cur = &_cache[idx];
    48   if (cur->_stats._live_words != 0) {
    48   if (cur->_stats._live_words != 0) {
    49     Atomic::add(cur->_stats._live_words, &_target[cur->_region_idx]._live_words);
    49     Atomic::add(&_target[cur->_region_idx]._live_words, cur->_stats._live_words);
    50   }
    50   }
    51   cur->clear();
    51   cur->clear();
    52 }
    52 }
    53 
    53 
    54 #endif // SHARE_GC_G1_G1REGIONMARKSTATSCACHE_INLINE_HPP
    54 #endif // SHARE_GC_G1_G1REGIONMARKSTATSCACHE_INLINE_HPP