mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
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:
parent
854f91fd5b
commit
261735f6fa
3 changed files with 104 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue