src/share/vm/gc_implementation/g1/g1HotCardCache.cpp

changeset 7652
ae374055ebce
parent 7195
c02ec279b062
child 7653
b6a1bf5222c5
     1.1 --- a/src/share/vm/gc_implementation/g1/g1HotCardCache.cpp	Fri Dec 19 09:21:06 2014 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1HotCardCache.cpp	Thu Sep 18 11:27:59 2014 +0200
     1.3 @@ -43,9 +43,7 @@
     1.4      _hot_cache_idx = 0;
     1.5  
     1.6      // For refining the cards in the hot cache in parallel
     1.7 -    uint n_workers = (ParallelGCThreads > 0 ?
     1.8 -                        _g1h->workers()->total_workers() : 1);
     1.9 -    _hot_cache_par_chunk_size = MAX2(1, _hot_cache_size / (int)n_workers);
    1.10 +    _hot_cache_par_chunk_size = (int)(ParallelGCThreads > 0 ? ClaimChunkSize : _hot_cache_size);
    1.11      _hot_cache_par_claimed_idx = 0;
    1.12  
    1.13      _card_counts.initialize(card_counts_storage);

mercurial