8047976: Ergonomics for GC thread counts should update the flags

Ergonomics updates flags for number of GC threads

Reviewed-by: tschatzl, jwilhelm
This commit is contained in:
Jesper Wilhelmsson 2014-09-27 15:11:41 +02:00
parent 854f91fd5b
commit 261735f6fa
3 changed files with 104 additions and 3 deletions

View file

@ -128,9 +128,7 @@ void ConcurrentG1Refine::worker_threads_do(ThreadClosure * tc) {
}
uint ConcurrentG1Refine::thread_num() {
uint n_threads = (G1ConcRefinementThreads > 0) ? G1ConcRefinementThreads
: ParallelGCThreads;
return MAX2<uint>(n_threads, 1);
return G1ConcRefinementThreads;
}
void ConcurrentG1Refine::print_worker_threads_on(outputStream* st) const {