comparison src/share/vm/runtime/arguments.cpp @ 4095:bca17e38de00

6593758: RFE: Enhance GC ergonomics to dynamically choose ParallelGCThreads Summary: Select number of GC threads dynamically based on heap usage and number of Java threads Reviewed-by: johnc, ysr, jcoomes
author jmasa
date Tue, 09 Aug 2011 10:16:01 -0700
parents 5bda8dae4e14
children 55d777c0860a
comparison
equal deleted inserted replaced
4094:3a298e04d914 4095:bca17e38de00
1392 } 1392 }
1393 1393
1394 // If no heap maximum was requested explicitly, use some reasonable fraction 1394 // If no heap maximum was requested explicitly, use some reasonable fraction
1395 // of the physical memory, up to a maximum of 1GB. 1395 // of the physical memory, up to a maximum of 1GB.
1396 if (UseParallelGC) { 1396 if (UseParallelGC) {
1397 FLAG_SET_ERGO(uintx, ParallelGCThreads, 1397 FLAG_SET_DEFAULT(ParallelGCThreads,
1398 Abstract_VM_Version::parallel_worker_threads()); 1398 Abstract_VM_Version::parallel_worker_threads());
1399 1399
1400 // If InitialSurvivorRatio or MinSurvivorRatio were not specified, but the 1400 // If InitialSurvivorRatio or MinSurvivorRatio were not specified, but the
1401 // SurvivorRatio has been set, reset their default values to SurvivorRatio + 1401 // SurvivorRatio has been set, reset their default values to SurvivorRatio +
1402 // 2. By doing this we make SurvivorRatio also work for Parallel Scavenger. 1402 // 2. By doing this we make SurvivorRatio also work for Parallel Scavenger.
1403 // See CR 6362902 for details. 1403 // See CR 6362902 for details.