src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp

changeset 445
28372612af5e
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp	Thu Feb 21 11:03:54 2008 -0800
     1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp	Fri Feb 22 17:17:14 2008 -0800
     1.3 @@ -39,10 +39,10 @@
     1.4  
     1.5      // If the user hasn't explicitly set the number of worker
     1.6      // threads, set the count.
     1.7 -    if (ParallelGCThreads == 0) {
     1.8 -      assert(UseParallelGC, "Setting ParallelGCThreads without UseParallelGC");
     1.9 -      ParallelGCThreads = os::active_processor_count();
    1.10 -    }
    1.11 +    assert(UseSerialGC ||
    1.12 +           !FLAG_IS_DEFAULT(ParallelGCThreads) ||
    1.13 +           (ParallelGCThreads > 0),
    1.14 +           "ParallelGCThreads should be set before flag initialization");
    1.15  
    1.16      // The survivor ratio's are calculated "raw", unlike the
    1.17      // default gc, which adds 2 to the ratio value. We need to

mercurial