mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -523,7 +523,7 @@ prepare_for_oops_into_collection_set_do() {
|
|||
assert(!_traversal_in_progress, "Invariant between iterations.");
|
||||
set_traversal(true);
|
||||
if (ParallelGCThreads > 0) {
|
||||
_seq_task->set_par_threads((int)n_workers());
|
||||
_seq_task->set_n_threads((int)n_workers());
|
||||
}
|
||||
guarantee( _cards_scanned == NULL, "invariant" );
|
||||
_cards_scanned = NEW_C_HEAP_ARRAY(size_t, n_workers());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue