7191817: -XX:+UseSerialGC -XX:+UseLargePages crashes with SIGFPE on MacOS X
authorcoleenp
Thu, 25 Oct 2012 16:33:40 -0400
changeset 14285 afa3d693e0f6
parent 14284 ceb386367065
child 14286 ec9e76cd402f
child 14287 4554a0b881ae
child 14388 2b7db60361a2
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
hotspot/src/share/vm/runtime/arguments.cpp
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Thu Oct 25 16:33:15 2012 -0400
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Thu Oct 25 16:33:40 2012 -0400
@@ -2569,7 +2569,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);
@@ -3134,6 +3136,10 @@
   UNSUPPORTED_OPTION(UseG1GC, "G1 GC");
 #endif
 
+#ifdef _ALLBSD_SOURCE  // UseLargePages is not yet supported on BSD.
+  UNSUPPORTED_OPTION(UseLargePages, "-XX:+UseLargePages");
+#endif
+
 #if !INCLUDE_ALTERNATE_GCS
   if (UseParallelGC) {
     warning("Parallel GC is not supported in this VM.  Using Serial GC.");