@@ -42,13 +42,11 @@ _n_hot = 0; _hot_cache_idx = 0; // For refining the cards in the hot cache in parallel - uint n_workers = (ParallelGCThreads > 0 ? - _g1h->workers()->total_workers() : 1); - _hot_cache_par_chunk_size = MAX2(1, _hot_cache_size / (int)n_workers); + _hot_cache_par_chunk_size = (ParallelGCThreads > 0 ? 32 : _hot_cache_size); _hot_cache_par_claimed_idx = 0; _card_counts.initialize(); } }