equal
deleted
inserted
replaced
66 { |
66 { |
67 if (_process_strong_tasks == NULL || !_process_strong_tasks->valid()) { |
67 if (_process_strong_tasks == NULL || !_process_strong_tasks->valid()) { |
68 vm_exit_during_initialization("Failed necessary allocation."); |
68 vm_exit_during_initialization("Failed necessary allocation."); |
69 } |
69 } |
70 _sh = this; // ch is static, should be set only once. |
70 _sh = this; // ch is static, should be set only once. |
71 if ((UseParNewGC || |
71 if (UseParNewGC || |
72 (UseConcMarkSweepGC && (CMSParallelInitialMarkEnabled || |
72 UseG1GC || |
73 CMSParallelRemarkEnabled)) || |
73 (UseConcMarkSweepGC && (CMSParallelInitialMarkEnabled || CMSParallelRemarkEnabled) && use_parallel_gc_threads())) { |
74 UseG1GC) && |
|
75 ParallelGCThreads > 0) { |
|
76 _workers = new FlexibleWorkGang("Parallel GC Threads", ParallelGCThreads, |
74 _workers = new FlexibleWorkGang("Parallel GC Threads", ParallelGCThreads, |
77 /* are_GC_task_threads */true, |
75 /* are_GC_task_threads */true, |
78 /* are_ConcurrentGC_threads */false); |
76 /* are_ConcurrentGC_threads */false); |
79 if (_workers == NULL) { |
77 if (_workers == NULL) { |
80 vm_exit_during_initialization("Failed necessary allocation."); |
78 vm_exit_during_initialization("Failed necessary allocation."); |