src/share/vm/runtime/arguments.cpp

changeset 3506
24cae3e4cbaa
parent 3467
0a10d80352d5
child 3561
7df3125953cb
child 3573
69333a2fbae2
equal deleted inserted replaced
3505:2eeebe4b4213 3506:24cae3e4cbaa
1398 #endif // !ZERO 1398 #endif // !ZERO
1399 } 1399 }
1400 1400
1401 void Arguments::set_parallel_gc_flags() { 1401 void Arguments::set_parallel_gc_flags() {
1402 assert(UseParallelGC || UseParallelOldGC, "Error"); 1402 assert(UseParallelGC || UseParallelOldGC, "Error");
1403 // If parallel old was requested, automatically enable parallel scavenge. 1403 // Enable ParallelOld unless it was explicitly disabled (cmd line or rc file).
1404 if (UseParallelOldGC && !UseParallelGC && FLAG_IS_DEFAULT(UseParallelGC)) { 1404 if (FLAG_IS_DEFAULT(UseParallelOldGC)) {
1405 FLAG_SET_DEFAULT(UseParallelGC, true); 1405 FLAG_SET_DEFAULT(UseParallelOldGC, true);
1406 } 1406 }
1407 FLAG_SET_DEFAULT(UseParallelGC, true);
1407 1408
1408 // If no heap maximum was requested explicitly, use some reasonable fraction 1409 // If no heap maximum was requested explicitly, use some reasonable fraction
1409 // of the physical memory, up to a maximum of 1GB. 1410 // of the physical memory, up to a maximum of 1GB.
1410 if (UseParallelGC) { 1411 if (UseParallelGC) {
1411 FLAG_SET_DEFAULT(ParallelGCThreads, 1412 FLAG_SET_DEFAULT(ParallelGCThreads,

mercurial