Mercurial > hg > graal-jvmci-8
changeset 4879:24cae3e4cbaa
6679764: enable parallel compaction by default
Reviewed-by: phh, jmasa
author | jcoomes |
---|---|
date | Thu, 02 Feb 2012 16:05:17 -0800 |
parents | 2eeebe4b4213 |
children | 5ab44ceb4d57 |
files | src/share/vm/runtime/arguments.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Mon Jan 30 15:21:57 2012 +0100 +++ b/src/share/vm/runtime/arguments.cpp Thu Feb 02 16:05:17 2012 -0800 @@ -1400,10 +1400,11 @@ void Arguments::set_parallel_gc_flags() { assert(UseParallelGC || UseParallelOldGC, "Error"); - // If parallel old was requested, automatically enable parallel scavenge. - if (UseParallelOldGC && !UseParallelGC && FLAG_IS_DEFAULT(UseParallelGC)) { - FLAG_SET_DEFAULT(UseParallelGC, true); + // Enable ParallelOld unless it was explicitly disabled (cmd line or rc file). + if (FLAG_IS_DEFAULT(UseParallelOldGC)) { + FLAG_SET_DEFAULT(UseParallelOldGC, true); } + FLAG_SET_DEFAULT(UseParallelGC, true); // If no heap maximum was requested explicitly, use some reasonable fraction // of the physical memory, up to a maximum of 1GB.