diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index 33690e795094f6b56c51170f8afed54e6ecddd91..32953f702f46a9d0f87ade5623cc75d81d646283 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -844,6 +844,7 @@ JDK_MICRO_VERSION JDK_MINOR_VERSION JDK_MAJOR_VERSION USER_RELEASE_SUFFIX +ENABLE_JFR COMPRESS_JARS UNLIMITED_CRYPTO CACERTS_FILE @@ -1012,6 +1013,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -1058,6 +1060,7 @@ enable_headful enable_hotspot_test_in_build with_cacerts_file enable_unlimited_crypto +enable_jfr with_milestone with_update_version with_user_release_suffix @@ -1253,6 +1256,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1505,6 +1509,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1642,7 +1655,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1795,6 +1808,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1843,6 +1857,7 @@ Optional Features: run the Queens test after Hotspot build [disabled] --enable-unlimited-crypto Enable unlimited crypto policy [disabled] + --disable-jfr Disable Java Flight Recorder support [enabled] --disable-debug-symbols disable generation of debug symbols [enabled] --disable-zip-debug-info disable zipping of debug-info files [enabled] @@ -4379,7 +4394,7 @@ VS_SDK_PLATFORM_NAME_2017= #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1580709484 +DATE_WHEN_GENERATED=1582132239 ############################################################################### # @@ -19803,6 +19818,38 @@ fi + ############################################################################### + # + # Enable or disable JFR + # + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build jfr" >&5 +$as_echo_n "checking whether to build jfr... " >&6; } + # Check whether --enable-jfr was given. +if test "${enable_jfr+set}" = set; then : + enableval=$enable_jfr; +else + enable_jfr=auto +fi + + if test "x$enable_jfr" = "xno"; then + ENABLE_JFR=false + elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then + if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then + if test "x$enable_jfr" = "xyes"; then + as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5 + else + ENABLE_JFR=false + fi + else + ENABLE_JFR=true + fi + else + as_fn_error $? "--enable-jfr must either be set to yes or no" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5 +$as_echo "$ENABLE_JFR" >&6; } + + # Source the version numbers . $AUTOCONF_DIR/version-numbers diff --git a/common/autoconf/jdk-options.m4 b/common/autoconf/jdk-options.m4 index 6f6c52a11abb95d4341efd0e4406370fc58ddf9a..6f78a47de15908fd161e5db86148b764eafd7fe1 100644 --- a/common/autoconf/jdk-options.m4 +++ b/common/autoconf/jdk-options.m4 @@ -432,6 +432,32 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], COMPRESS_JARS=false AC_SUBST(COMPRESS_JARS) + + ############################################################################### + # + # Enable or disable JFR + # + AC_MSG_CHECKING([whether to build jfr]) + AC_ARG_ENABLE(jfr, [AS_HELP_STRING([--disable-jfr], + [Disable Java Flight Recorder support @<:@enabled@:>@])],, + [enable_jfr=auto]) + if test "x$enable_jfr" = "xno"; then + ENABLE_JFR=false + elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then + if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then + if test "x$enable_jfr" = "xyes"; then + AC_MSG_ERROR([cannot enable JFR on minimal1 VM or zero build]) + else + ENABLE_JFR=false + fi + else + ENABLE_JFR=true + fi + else + AC_MSG_ERROR([--enable-jfr must either be set to yes or no]) + fi + AC_MSG_RESULT([$ENABLE_JFR]) + AC_SUBST(ENABLE_JFR) ]) ###############################################################################