提交 5e25b13b 编写于 作者: J jmasa

Merge

...@@ -1454,9 +1454,14 @@ void Arguments::set_parallel_gc_flags() { ...@@ -1454,9 +1454,14 @@ void Arguments::set_parallel_gc_flags() {
// 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.
if (UseParallelGC) {
FLAG_SET_DEFAULT(ParallelGCThreads, FLAG_SET_DEFAULT(ParallelGCThreads,
Abstract_VM_Version::parallel_worker_threads()); Abstract_VM_Version::parallel_worker_threads());
if (ParallelGCThreads == 0) {
jio_fprintf(defaultStream::error_stream(),
"The Parallel GC can not be combined with -XX:ParallelGCThreads=0\n");
vm_exit(1);
}
// If InitialSurvivorRatio or MinSurvivorRatio were not specified, but the // If InitialSurvivorRatio or MinSurvivorRatio were not specified, but the
// SurvivorRatio has been set, reset their default values to SurvivorRatio + // SurvivorRatio has been set, reset their default values to SurvivorRatio +
...@@ -1479,7 +1484,6 @@ void Arguments::set_parallel_gc_flags() { ...@@ -1479,7 +1484,6 @@ void Arguments::set_parallel_gc_flags() {
FLAG_SET_DEFAULT(MarkSweepDeadRatio, 1); FLAG_SET_DEFAULT(MarkSweepDeadRatio, 1);
} }
} }
}
} }
void Arguments::set_g1_gc_flags() { void Arguments::set_g1_gc_flags() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册