changeset 5143:92083784035a

7191817: -XX:+UseSerialGC -XX:+UseLargePages crashes with SIGFPE on MacOS X Summary: Large pages not supported on bsd platforms. Disable UseLargePages on all bsd platforms. Reviewed-by: coleenp, hseigel, zgu
author minqi
date Mon, 23 Dec 2013 09:31:58 -0800
parents 2d3bd90bfad0
children a59134ccb1b7
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Fri Dec 20 13:40:46 2013 -0800
+++ b/src/share/vm/runtime/arguments.cpp	Mon Dec 23 09:31:58 2013 -0800
@@ -2549,7 +2549,9 @@
          FLAG_SET_CMDLINE(uintx, MaxNewSize, NewSize);
       }
 
+#ifndef _ALLBSD_SOURCE  // UseLargePages is not yet supported on BSD.
       FLAG_SET_DEFAULT(UseLargePages, true);
+#endif
 
       // Increase some data structure sizes for efficiency
       FLAG_SET_CMDLINE(uintx, BaseFootPrintEstimate, MaxHeapSize);
@@ -3111,6 +3113,10 @@
   UNSUPPORTED_OPTION(UseG1GC, "G1 GC");
 #endif
 
+#ifdef _ALLBSD_SOURCE  // UseLargePages is not yet supported on BSD.
+  UNSUPPORTED_OPTION(UseLargePages, "-XX:+UseLargePages");
+#endif
+
 #ifndef PRODUCT
   if (TraceBytecodesAt != 0) {
     TraceBytecodes = true;