mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -729,7 +729,9 @@ class CMSCollector: public CHeapObj {
|
|||
|
||||
// Support for marking stack overflow handling
|
||||
bool take_from_overflow_list(size_t num, CMSMarkStack* to_stack);
|
||||
bool par_take_from_overflow_list(size_t num, OopTaskQueue* to_work_q);
|
||||
bool par_take_from_overflow_list(size_t num,
|
||||
OopTaskQueue* to_work_q,
|
||||
int no_of_gc_threads);
|
||||
void push_on_overflow_list(oop p);
|
||||
void par_push_on_overflow_list(oop p);
|
||||
// the following is, obviously, not, in general, "MT-stable"
|
||||
|
@ -768,7 +770,7 @@ class CMSCollector: public CHeapObj {
|
|||
void abortable_preclean(); // Preclean while looking for possible abort
|
||||
void initialize_sequential_subtasks_for_young_gen_rescan(int i);
|
||||
// Helper function for above; merge-sorts the per-thread plab samples
|
||||
void merge_survivor_plab_arrays(ContiguousSpace* surv);
|
||||
void merge_survivor_plab_arrays(ContiguousSpace* surv, int no_of_gc_threads);
|
||||
// Resets (i.e. clears) the per-thread plab sample vectors
|
||||
void reset_survivor_plab_arrays();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue