changeset 866:5edf518c7700

Fix build on Linux with 64kb default page size There's a general problem with the specification of the shadow pages in HotSpot because they are specified in 'page' units (StackYellowPages, StackRedPages, StackShadowPages) but with the implicit assumption that the default system memory page size is 4kb. On Linux/ppc64 it is not unusual to have bigger (e.g. 64kb) page sizes and this leads to problems when HotSpot computes its minimum stack size. The general fix for this problem would be to change the specification of the shadow pages from 'page' units to bytes. But this would require shared code changes so for the time being we just increase the explicit stack size settings in the makefiles to not conflict with the minimum stack sizes computed by HotSpot.
author simonis
date Wed, 09 Jan 2013 09:55:11 +0000
parents 61259bc8c8d6
children 70af8b7907a5
files make/common/shared/Defs-java.gmk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/shared/Defs-java.gmk	Mon Dec 17 19:32:56 2012 +0100
+++ b/make/common/shared/Defs-java.gmk	Wed Jan 09 09:55:11 2013 +0000
@@ -81,7 +81,7 @@
 ifeq ($(ARCH_DATA_MODEL), 32)
   JAVAC_JVM_FLAGS    += -J-XX:ThreadStackSize=768
 else
-  JAVAC_JVM_FLAGS    += -J-XX:ThreadStackSize=1536
+  JAVAC_JVM_FLAGS    += -J-XX:ThreadStackSize=2096
 endif
 JAVAC_JVM_FLAGS    += $(JAVA_TOOLS_FLAGS:%=-J%)