common/autoconf/boot-jdk.m4

Print this page

        

*** 348,359 **** [specify JVM arguments to be passed to all java invocations of boot JDK, overriding the default values, e.g --with-boot-jdk-jvmargs="-Xmx8G -enableassertions"])]) AC_MSG_CHECKING([flags for boot jdk java command] ) # Starting amount of heap memory. ! ADD_JVM_ARG_IF_OK([-Xms64M],boot_jdk_jvmargs,[$JAVA]) # Maximum amount of heap memory. # Maximum stack size. if test "x$BUILD_NUM_BITS" = x32; then JVM_MAX_HEAP=1100M --- 348,376 ---- [specify JVM arguments to be passed to all java invocations of boot JDK, overriding the default values, e.g --with-boot-jdk-jvmargs="-Xmx8G -enableassertions"])]) AC_MSG_CHECKING([flags for boot jdk java command] ) + # Disable special log output when a debug build is used as Boot JDK... + ADD_JVM_ARG_IF_OK([-XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput],boot_jdk_jvmargs,[$JAVA]) + + # Apply user provided options. + ADD_JVM_ARG_IF_OK([$with_boot_jdk_jvmargs],boot_jdk_jvmargs,[$JAVA]) + + AC_MSG_RESULT([$boot_jdk_jvmargs]) + + # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs + JAVA_FLAGS=$boot_jdk_jvmargs + + AC_SUBST(BOOT_JDK_JVMARGS, $boot_jdk_jvmargs) + AC_SUBST(JAVA_FLAGS) + + + AC_MSG_CHECKING([flags for boot jdk java command for big configurations] ) + # Starting amount of heap memory. ! ADD_JVM_ARG_IF_OK([-Xms64M],boot_jdk_jvmargs_big,[$JAVA]) # Maximum amount of heap memory. # Maximum stack size. if test "x$BUILD_NUM_BITS" = x32; then JVM_MAX_HEAP=1100M
*** 364,385 **** # space for the jvm. More specifically, when running javac to build huge # jdk batch JVM_MAX_HEAP=1600M STACK_SIZE=1536 fi ! ADD_JVM_ARG_IF_OK([-Xmx$JVM_MAX_HEAP],boot_jdk_jvmargs,[$JAVA]) ! ADD_JVM_ARG_IF_OK([-XX:ThreadStackSize=$STACK_SIZE],boot_jdk_jvmargs,[$JAVA]) ! # Disable special log output when a debug build is used as Boot JDK... ! ADD_JVM_ARG_IF_OK([-XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput],boot_jdk_jvmargs,[$JAVA]) ! # Apply user provided options. ! ADD_JVM_ARG_IF_OK([$with_boot_jdk_jvmargs],boot_jdk_jvmargs,[$JAVA]) - AC_MSG_RESULT([$boot_jdk_jvmargs]) ! # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs ! JAVA_FLAGS=$boot_jdk_jvmargs ! AC_SUBST(BOOT_JDK_JVMARGS, $boot_jdk_jvmargs) ! AC_SUBST(JAVA_FLAGS, $JAVA_FLAGS) ]) --- 381,406 ---- # space for the jvm. More specifically, when running javac to build huge # jdk batch JVM_MAX_HEAP=1600M STACK_SIZE=1536 fi ! ADD_JVM_ARG_IF_OK([-Xmx$JVM_MAX_HEAP],boot_jdk_jvmargs_big,[$JAVA]) ! ADD_JVM_ARG_IF_OK([-XX:ThreadStackSize=$STACK_SIZE],boot_jdk_jvmargs_big,[$JAVA]) ! AC_MSG_RESULT([$boot_jdk_jvmargs_big]) ! JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big ! AC_SUBST(JAVA_FLAGS_BIG) ! AC_MSG_CHECKING([flags for boot jdk java command for small configurations] ) ! # Use serial gc for small short lived tools if possible ! ADD_JVM_ARG_IF_OK([-XX:+UseSerialGC],boot_jdk_jvmargs_small,[$JAVA]) ! ADD_JVM_ARG_IF_OK([-Xms32M],boot_jdk_jvmargs_small,[$JAVA]) ! ADD_JVM_ARG_IF_OK([-Xmx512M],boot_jdk_jvmargs_small,[$JAVA]) ! ! AC_MSG_RESULT([$boot_jdk_jvmargs_small]) ! ! JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small ! AC_SUBST(JAVA_FLAGS_SMALL) ])