Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp @ 20505:8ba0078861d4
8047976: Ergonomics for GC thread counts should update the flags
Summary: Ergonomics updates flags for number of GC threads
Reviewed-by: tschatzl, jwilhelm
Contributed-by: sangheon.kim@oracle.com
author | jwilhelm |
---|---|
date | Sat, 27 Sep 2014 15:11:41 +0200 |
parents | 1f1d373cd044 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20502:13dbe89e447c | 20505:8ba0078861d4 |
---|---|
126 } | 126 } |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 uint ConcurrentG1Refine::thread_num() { | 130 uint ConcurrentG1Refine::thread_num() { |
131 uint n_threads = (G1ConcRefinementThreads > 0) ? G1ConcRefinementThreads | 131 return G1ConcRefinementThreads; |
132 : ParallelGCThreads; | |
133 return MAX2<uint>(n_threads, 1); | |
134 } | 132 } |
135 | 133 |
136 void ConcurrentG1Refine::print_worker_threads_on(outputStream* st) const { | 134 void ConcurrentG1Refine::print_worker_threads_on(outputStream* st) const { |
137 for (uint i = 0; i < _n_threads; ++i) { | 135 for (uint i = 0; i < _n_threads; ++i) { |
138 _threads[i]->print_on(st); | 136 _threads[i]->print_on(st); |