src/hotspot/share/gc/g1/g1Arguments.cpp
changeset 52148 2d9f8845d0ae
parent 50787 5f0266d16543
child 52811 ff04b71bf6f1
equal deleted inserted replaced
52147:435467bce14e 52148:2d9f8845d0ae
    73 }
    73 }
    74 
    74 
    75 void G1Arguments::initialize() {
    75 void G1Arguments::initialize() {
    76   GCArguments::initialize();
    76   GCArguments::initialize();
    77   assert(UseG1GC, "Error");
    77   assert(UseG1GC, "Error");
    78   FLAG_SET_DEFAULT(ParallelGCThreads, Abstract_VM_Version::parallel_worker_threads());
    78   FLAG_SET_DEFAULT(ParallelGCThreads, VM_Version::parallel_worker_threads());
    79   if (ParallelGCThreads == 0) {
    79   if (ParallelGCThreads == 0) {
    80     assert(!FLAG_IS_DEFAULT(ParallelGCThreads), "The default value for ParallelGCThreads should not be 0.");
    80     assert(!FLAG_IS_DEFAULT(ParallelGCThreads), "The default value for ParallelGCThreads should not be 0.");
    81     vm_exit_during_initialization("The flag -XX:+UseG1GC can not be combined with -XX:ParallelGCThreads=0", NULL);
    81     vm_exit_during_initialization("The flag -XX:+UseG1GC can not be combined with -XX:ParallelGCThreads=0", NULL);
    82   }
    82   }
    83 
    83