@@ -650,6 +650,7 @@ TEST_JOBS
650650JOBS
651651MEMORY_SIZE
652652NUM_CORES
653+ BUILD_FAILURE_HANDLER
653654ENABLE_INTREE_EC
654655HOTSPOT_MAKE_ARGS
655656LIBZIP_CAN_USE_MMAP
@@ -1172,6 +1173,7 @@ with_lcms
11721173with_dxsdk
11731174with_dxsdk_lib
11741175with_dxsdk_include
1176+ enable_jtreg_failure_handler
11751177with_num_cores
11761178with_memory_size
11771179with_jobs
@@ -1940,6 +1942,12 @@ Optional Features:
19401942 disable bundling of the freetype library with the
19411943 build result [enabled on Windows or when using
19421944 --with-freetype, disabled otherwise]
1945+ --enable-jtreg-failure-handler
1946+ forces build of the jtreg failure handler to be
1947+ enabled, missing dependencies become fatal errors.
1948+ Default is auto, where the failure handler is built
1949+ if all dependencies are present and otherwise just
1950+ disabled.
19431951 --enable-sjavac use sjavac to do fast incremental compiles
19441952 [disabled]
19451953 --disable-javac-server disable javac server [enabled]
@@ -4274,6 +4282,12 @@ pkgadd_help() {
42744282#
42754283
42764284
4285+ ################################################################################
4286+ #
4287+ # Check if building of the jtreg failure handler should be enabled.
4288+ #
4289+
4290+
42774291#
42784292# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
42794293# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -4950,7 +4964,7 @@ VS_SDK_PLATFORM_NAME_2013=
49504964#CUSTOM_AUTOCONF_INCLUDE
49514965
49524966# Do not change or remove the following line, it is needed for consistency checks:
4953- DATE_WHEN_GENERATED=1458755892
4967+ DATE_WHEN_GENERATED=1460963400
49544968
49554969###############################################################################
49564970#
@@ -29770,13 +29784,13 @@ $as_echo "$tool_specified" >&6; }
2977029784
2977129785
2977229786
29773- $ECHO "Check if jvm arg is ok: -Xpatch:" >&5
29774- $ECHO "Command: $JAVA -Xpatch: -version" >&5
29775- OUTPUT=`$JAVA -Xpatch: -version 2>&1`
29787+ $ECHO "Check if jvm arg is ok: -Xpatch:foo=bar " >&5
29788+ $ECHO "Command: $JAVA -Xpatch:foo=bar -version" >&5
29789+ OUTPUT=`$JAVA -Xpatch:foo=bar -version 2>&1`
2977629790 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
2977729791 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
2977829792 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
29779- dummy="$dummy -Xpatch:"
29793+ dummy="$dummy -Xpatch:foo=bar "
2978029794 JVM_ARG_OK=true
2978129795 else
2978229796 $ECHO "Arg failed:" >&5
@@ -29856,10 +29870,10 @@ $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;}
2985629870 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | head -n 1`
2985729871
2985829872 # Extra M4 quote needed to protect [] in grep expression.
29859- FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | grep '\"1\.[9]\. '`
29873+ FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\" '`
2986029874 if test "x$FOUND_CORRECT_VERSION" = x; then
29861- { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5
29862- $as_echo "$as_me: Potential Boot JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;}
29875+ { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5
29876+ $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;}
2986329877 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5
2986429878$as_echo "$as_me: (Your Build JDK must be version 9)" >&6;}
2986529879 BUILD_JDK_FOUND=no
@@ -62037,6 +62051,45 @@ $as_echo "no" >&6; }
6203762051
6203862052
6203962053
62054+ # Check whether --enable-jtreg-failure-handler was given.
62055+ if test "${enable_jtreg_failure_handler+set}" = set; then :
62056+ enableval=$enable_jtreg_failure_handler;
62057+ fi
62058+
62059+
62060+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5
62061+ $as_echo_n "checking if jtreg failure handler should be built... " >&6; }
62062+
62063+ if test "x$enable_jtreg_failure_handler" = "xyes"; then
62064+ if test "x$JT_HOME" = "x"; then
62065+ as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5
62066+ else
62067+ BUILD_FAILURE_HANDLER=true
62068+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
62069+ $as_echo "yes, forced" >&6; }
62070+ fi
62071+ elif test "x$enable_jtreg_failure_handler" = "xno"; then
62072+ BUILD_FAILURE_HANDLER=false
62073+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
62074+ $as_echo "no, forced" >&6; }
62075+ elif test "x$enable_jtreg_failure_handler" = "xauto" \
62076+ || test "x$enable_jtreg_failure_handler" = "x"; then
62077+ if test "x$JT_HOME" = "x"; then
62078+ BUILD_FAILURE_HANDLER=false
62079+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5
62080+ $as_echo "no, missing jtreg" >&6; }
62081+ else
62082+ BUILD_FAILURE_HANDLER=true
62083+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5
62084+ $as_echo "yes, jtreg present" >&6; }
62085+ fi
62086+ else
62087+ as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5
62088+ fi
62089+
62090+
62091+
62092+
6204062093###############################################################################
6204162094#
6204262095# Configure parts of the build that only affect the build performance,
@@ -62510,7 +62563,7 @@ $as_echo_n "checking whether to use javac server... " >&6; }
6251062563$as_echo "$ENABLE_JAVAC_SERVER" >&6; }
6251162564
6251262565
62513- if test "x$ENABLE_JAVAC_SERVER" = "xyes" || "x$ENABLE_SJAVAC" = "xyes"; then
62566+ if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then
6251462567 # When using a server javac, the small client instances do not need much
6251562568 # resources.
6251662569 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL"
0 commit comments