equal
deleted
inserted
replaced
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 |