Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 4879:24cae3e4cbaa
6679764: enable parallel compaction by default
Reviewed-by: phh, jmasa
author | jcoomes |
---|---|
date | Thu, 02 Feb 2012 16:05:17 -0800 |
parents | 0a10d80352d5 |
children | 7df3125953cb 69333a2fbae2 |
comparison
equal
deleted
inserted
replaced
4878:2eeebe4b4213 | 4879: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, |