提交 428d0f65 编写于 作者: C coleenp

7191817: -XX:+UseSerialGC -XX:+UseLargePages crashes with SIGFPE on MacOS X

Summary: Disable -XX:+UseLargePages for MacOS X
Reviewed-by: dholmes, coleenp, sla
Contributed-by: harold.seigel@oracle.com
上级 0cef68ab
...@@ -2569,7 +2569,9 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, ...@@ -2569,7 +2569,9 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
FLAG_SET_CMDLINE(uintx, MaxNewSize, NewSize); FLAG_SET_CMDLINE(uintx, MaxNewSize, NewSize);
} }
#ifndef _ALLBSD_SOURCE // UseLargePages is not yet supported on BSD.
FLAG_SET_DEFAULT(UseLargePages, true); FLAG_SET_DEFAULT(UseLargePages, true);
#endif
// Increase some data structure sizes for efficiency // Increase some data structure sizes for efficiency
FLAG_SET_CMDLINE(uintx, BaseFootPrintEstimate, MaxHeapSize); FLAG_SET_CMDLINE(uintx, BaseFootPrintEstimate, MaxHeapSize);
...@@ -3134,6 +3136,10 @@ jint Arguments::parse(const JavaVMInitArgs* args) { ...@@ -3134,6 +3136,10 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
UNSUPPORTED_OPTION(UseG1GC, "G1 GC"); UNSUPPORTED_OPTION(UseG1GC, "G1 GC");
#endif #endif
#ifdef _ALLBSD_SOURCE // UseLargePages is not yet supported on BSD.
UNSUPPORTED_OPTION(UseLargePages, "-XX:+UseLargePages");
#endif
#if !INCLUDE_ALTERNATE_GCS #if !INCLUDE_ALTERNATE_GCS
if (UseParallelGC) { if (UseParallelGC) {
warning("Parallel GC is not supported in this VM. Using Serial GC."); warning("Parallel GC is not supported in this VM. Using Serial GC.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册