mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6984287: Regularize how GC parallel workers are specified
Associate number of GC workers with the workgang as opposed to the task. Reviewed-by: johnc, ysr
This commit is contained in:
parent
3af63c10ab
commit
28e56b8970
29 changed files with 504 additions and 216 deletions
|
@ -2449,7 +2449,7 @@ void PSParallelCompact::enqueue_region_draining_tasks(GCTaskQueue* q,
|
|||
|
||||
const unsigned int task_count = MAX2(parallel_gc_threads, 1U);
|
||||
for (unsigned int j = 0; j < task_count; j++) {
|
||||
q->enqueue(new DrainStacksCompactionTask());
|
||||
q->enqueue(new DrainStacksCompactionTask(j));
|
||||
}
|
||||
|
||||
// Find all regions that are available (can be filled immediately) and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue