提交 ac3f9e58 编写于 作者: J jcoomes

6679764: enable parallel compaction by default

Reviewed-by: phh, jmasa
上级 818d216b
...@@ -1400,10 +1400,11 @@ void Arguments::set_ergonomics_flags() { ...@@ -1400,10 +1400,11 @@ void Arguments::set_ergonomics_flags() {
void Arguments::set_parallel_gc_flags() { void Arguments::set_parallel_gc_flags() {
assert(UseParallelGC || UseParallelOldGC, "Error"); assert(UseParallelGC || UseParallelOldGC, "Error");
// If parallel old was requested, automatically enable parallel scavenge. // Enable ParallelOld unless it was explicitly disabled (cmd line or rc file).
if (UseParallelOldGC && !UseParallelGC && FLAG_IS_DEFAULT(UseParallelGC)) { if (FLAG_IS_DEFAULT(UseParallelOldGC)) {
FLAG_SET_DEFAULT(UseParallelGC, true); FLAG_SET_DEFAULT(UseParallelOldGC, true);
} }
FLAG_SET_DEFAULT(UseParallelGC, true);
// If no heap maximum was requested explicitly, use some reasonable fraction // If no heap maximum was requested explicitly, use some reasonable fraction
// of the physical memory, up to a maximum of 1GB. // of the physical memory, up to a maximum of 1GB.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册