< prev index next >
src/hotspot/share/gc/g1/g1RegionMarkStatsCache.inline.hpp
Print this page
@@ -44,11 +44,11 @@
}
inline void G1RegionMarkStatsCache::evict(uint idx) {
G1RegionMarkStatsCacheEntry* cur = &_cache[idx];
if (cur->_stats._live_words != 0) {
- Atomic::add(cur->_stats._live_words, &_target[cur->_region_idx]._live_words);
+ Atomic::add(&_target[cur->_region_idx]._live_words, cur->_stats._live_words);
}
cur->clear();
}
#endif // SHARE_GC_G1_G1REGIONMARKSTATSCACHE_INLINE_HPP
< prev index next >