< prev index next >

src/hotspot/share/gc/g1/g1RegionMarkStatsCache.cpp

Print this page
rev 50098 : [mq]: 8202842-g1-footprint-regressions

*** 34,46 **** _cache_misses(0) { guarantee(is_power_of_2(num_cache_entries), "Number of cache entries must be power of two, but is %u", num_cache_entries); _cache = NEW_C_HEAP_ARRAY(G1RegionMarkStatsCacheEntry, _num_cache_entries, mtGC); - for (uint i = 0; i < _num_cache_entries; i++) { - _cache[i].clear(); - } _num_cache_entries_mask = _num_cache_entries - 1; } G1RegionMarkStatsCache::~G1RegionMarkStatsCache() { FREE_C_HEAP_ARRAY(G1RegionMarkStatsCacheEntry, _cache); --- 34,43 ----
< prev index next >