8190426: Lazily initialize refinement threads with UseDynamicNumberOfGCThreads

Reviewed-by: sangheki, sjohanss
This commit is contained in:
Thomas Schatzl 2017-11-23 15:51:06 +01:00
parent c5ce7408b3
commit faff99f2fc
6 changed files with 238 additions and 153 deletions

View file

@ -298,7 +298,7 @@ G1RemSet::~G1RemSet() {
}
uint G1RemSet::num_par_rem_sets() {
return MAX2(DirtyCardQueueSet::num_par_ids() + G1ConcurrentRefine::thread_num(), ParallelGCThreads);
return MAX2(DirtyCardQueueSet::num_par_ids() + G1ConcurrentRefine::max_num_threads(), ParallelGCThreads);
}
void G1RemSet::initialize(size_t capacity, uint max_regions) {