mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8053998: Hot card cache flush chunk size too coarse grained
Changed the chunk size to a smaller fixed number. Reviewed-by: tschatzl, mgerdin
This commit is contained in:
parent
f6ab247c45
commit
d90a333e5b
2 changed files with 4 additions and 3 deletions
|
@ -43,9 +43,7 @@ void G1HotCardCache::initialize(G1RegionToSpaceMapper* card_counts_storage) {
|
|||
_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 ? ClaimChunkSize : _hot_cache_size);
|
||||
_hot_cache_par_claimed_idx = 0;
|
||||
|
||||
_card_counts.initialize(card_counts_storage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue