6903609: Max memory of 896 may be too large for typical windows developer environment
authorschien
Fri, 29 Apr 2011 11:52:58 -0700
changeset 9362 f91f98952e64
parent 9361 1051c04ab0b1
child 9364 3573e33f4386
child 9483 bab15ad536ed
child 9495 f0b0ad903f6f
child 9541 7ce475045bf0
6903609: Max memory of 896 may be too large for typical windows developer environment Reviewed-by: ksrini, katleman
jdk/make/common/shared/Platform.gmk
--- a/jdk/make/common/shared/Platform.gmk	Wed Apr 27 19:23:13 2011 -0700
+++ b/jdk/make/common/shared/Platform.gmk	Fri Apr 29 11:52:58 2011 -0700
@@ -428,8 +428,6 @@
 # Machines with 512Mb or less of real memory are considered low memory
 #    build machines and adjustments will be made to prevent excessing
 #    system swapping during the build.
-#    If we don't know, assume 512. Subtract 128 from MB for VM MAX.
-#    Don't set VM max over 1024-128=896.
 ifeq ($(JDK_HAS_MEM_INFO),)
   JDK_HAS_MEM_INFO=true
   export JDK_HAS_MEM_INFO
@@ -440,18 +438,8 @@
       else \
         echo "false"; \
       fi)
-    MAX_VM_MEMORY := $(shell \
-      if [ $(MB_OF_MEMORY) -le 1024 ] ; then \
-        expr $(MB_OF_MEMORY) '-' 128 2> $(DEV_NULL) ; \
-      else \
-        echo "896"; \
-      fi)
-    MIN_VM_MEMORY := $(shell \
-      if [ $(MAX_VM_MEMORY) -le 128 ] ; then \
-        expr $(MAX_VM_MEMORY) '-' 8 2> $(DEV_NULL) ; \
-      else \
-        echo "128"; \
-      fi)
+    MAX_VM_MEMORY := 512
+    MIN_VM_MEMORY := $(MAX_VM_MEMORY)
   else
     MB_OF_MEMORY       := unknown
     LOW_MEMORY_MACHINE := true