comparison src/share/vm/gc_implementation/g1/concurrentMark.hpp @ 4711:adedfbbf0360

7120038: G1: ParallelGCThreads==0 is broken Summary: Running G1 with ParallelGCThreads==0 results in various crashes and asserts. Most of these are caused by unguarded references to the worker threads array or an incorrect number of active workers. Reviewed-by: jmasa, tonyp
author johnc
date Fri, 16 Dec 2011 11:40:00 -0800
parents dc467e8b2c5e
children 441e946dc1af
comparison
equal deleted inserted replaced
4710:41406797186b 4711:adedfbbf0360
716 // phase based on the number of GC threads being used in a STW 716 // phase based on the number of GC threads being used in a STW
717 // phase. 717 // phase.
718 size_t scale_parallel_threads(size_t n_par_threads); 718 size_t scale_parallel_threads(size_t n_par_threads);
719 719
720 // Calculates the number of GC threads to be used in a concurrent phase. 720 // Calculates the number of GC threads to be used in a concurrent phase.
721 int calc_parallel_marking_threads(); 721 size_t calc_parallel_marking_threads();
722 722
723 // The following three are interaction between CM and 723 // The following three are interaction between CM and
724 // G1CollectedHeap 724 // G1CollectedHeap
725 725
726 // This notifies CM that a root during initial-mark needs to be 726 // This notifies CM that a root during initial-mark needs to be