make/common/shared/Platform.gmk

Print this page

        

*** 426,437 **** endif # 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 ifneq ($(MB_OF_MEMORY),) LOW_MEMORY_MACHINE := $(shell \ --- 426,435 ----
*** 438,459 **** if [ $(MB_OF_MEMORY) -le 512 ] ; then \ echo "true"; \ 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) else MB_OF_MEMORY := unknown LOW_MEMORY_MACHINE := true MAX_VM_MEMORY := 384 MIN_VM_MEMORY := 128 --- 436,447 ---- if [ $(MB_OF_MEMORY) -le 512 ] ; then \ echo "true"; \ else \ echo "false"; \ fi) ! MAX_VM_MEMORY := 512 ! MIN_VM_MEMORY := $(MAX_VM_MEMORY) else MB_OF_MEMORY := unknown LOW_MEMORY_MACHINE := true MAX_VM_MEMORY := 384 MIN_VM_MEMORY := 128