< prev index next >

make/autoconf/hotspot.m4

Print this page
rev 51053 : 8207830: [aix] disable jfr in build and tests


 314 
 315   # Verify that dependencies are met for explicitly set features.
 316   if HOTSPOT_CHECK_JVM_FEATURE(jvmti) && ! HOTSPOT_CHECK_JVM_FEATURE(services); then
 317     AC_MSG_ERROR([Specified JVM feature 'jvmti' requires feature 'services'])
 318   fi
 319 
 320   if HOTSPOT_CHECK_JVM_FEATURE(management) && ! HOTSPOT_CHECK_JVM_FEATURE(nmt); then
 321     AC_MSG_ERROR([Specified JVM feature 'management' requires feature 'nmt'])
 322   fi
 323 
 324   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 325     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 326   fi
 327 
 328   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 329     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 330   fi
 331 
 332   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 333   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then

 334     if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 335       NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 336     fi
 337   fi

 338 
 339   # Only enable ZGC on Linux x86_64
 340   AC_MSG_CHECKING([if zgc should be built])
 341   if HOTSPOT_CHECK_JVM_FEATURE(zgc); then
 342     if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
 343       AC_MSG_RESULT([yes])
 344     else
 345       DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 346       AC_MSG_RESULT([no, platform not supported])
 347     fi
 348   else
 349     AC_MSG_RESULT([no])
 350   fi
 351 
 352   # Turn on additional features based on other parts of configure
 353   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 354     JVM_FEATURES="$JVM_FEATURES dtrace"
 355   else
 356     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 357       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])


 442   AC_MSG_CHECKING([if aot should be enabled])
 443   if test "x$ENABLE_AOT" = "xtrue"; then
 444     if test "x$JVM_FEATURES_graal" != "xgraal"; then
 445       if test "x$enable_aot" = "xyes" || HOTSPOT_CHECK_JVM_FEATURE(aot); then
 446         AC_MSG_RESULT([yes, forced])
 447         AC_MSG_ERROR([Specified JVM feature 'aot' requires feature 'graal'])
 448       else
 449         AC_MSG_RESULT([no])
 450       fi
 451       JVM_FEATURES_aot=""
 452       ENABLE_AOT="false"
 453     else
 454       if test "x$enable_aot" = "xyes" || HOTSPOT_CHECK_JVM_FEATURE(aot); then
 455         AC_MSG_RESULT([yes, forced])
 456       else
 457         AC_MSG_RESULT([yes])
 458       fi
 459       JVM_FEATURES_aot="aot"
 460     fi
 461   else
 462     if test "x$enable_aot" = "xno" || "x$DISABLE_AOT" = "xaot"; then
 463       AC_MSG_RESULT([no, forced])
 464     else
 465       AC_MSG_RESULT([no])
 466     fi
 467     JVM_FEATURES_aot=""
 468     if HOTSPOT_CHECK_JVM_FEATURE(aot); then
 469       AC_MSG_ERROR([To enable aot, you must use --enable-aot])
 470     fi
 471   fi
 472 
 473   AC_SUBST(ENABLE_AOT)
 474 
 475   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 476     # Default to use link time optimizations on minimal on arm
 477     JVM_FEATURES_link_time_opt="link-time-opt"
 478   else
 479     JVM_FEATURES_link_time_opt=""
 480   fi
 481 
 482   # All variants but minimal (and custom) get these features




 314 
 315   # Verify that dependencies are met for explicitly set features.
 316   if HOTSPOT_CHECK_JVM_FEATURE(jvmti) && ! HOTSPOT_CHECK_JVM_FEATURE(services); then
 317     AC_MSG_ERROR([Specified JVM feature 'jvmti' requires feature 'services'])
 318   fi
 319 
 320   if HOTSPOT_CHECK_JVM_FEATURE(management) && ! HOTSPOT_CHECK_JVM_FEATURE(nmt); then
 321     AC_MSG_ERROR([Specified JVM feature 'management' requires feature 'nmt'])
 322   fi
 323 
 324   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 325     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 326   fi
 327 
 328   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 329     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 330   fi
 331 
 332   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 333   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 334     if test "x$OPENJDK_TARGET_OS" != xaix; then
 335       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 336         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 337       fi
 338     fi
 339   fi
 340 
 341   # Only enable ZGC on Linux x86_64
 342   AC_MSG_CHECKING([if zgc should be built])
 343   if HOTSPOT_CHECK_JVM_FEATURE(zgc); then
 344     if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
 345       AC_MSG_RESULT([yes])
 346     else
 347       DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 348       AC_MSG_RESULT([no, platform not supported])
 349     fi
 350   else
 351     AC_MSG_RESULT([no])
 352   fi
 353 
 354   # Turn on additional features based on other parts of configure
 355   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 356     JVM_FEATURES="$JVM_FEATURES dtrace"
 357   else
 358     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 359       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])


 444   AC_MSG_CHECKING([if aot should be enabled])
 445   if test "x$ENABLE_AOT" = "xtrue"; then
 446     if test "x$JVM_FEATURES_graal" != "xgraal"; then
 447       if test "x$enable_aot" = "xyes" || HOTSPOT_CHECK_JVM_FEATURE(aot); then
 448         AC_MSG_RESULT([yes, forced])
 449         AC_MSG_ERROR([Specified JVM feature 'aot' requires feature 'graal'])
 450       else
 451         AC_MSG_RESULT([no])
 452       fi
 453       JVM_FEATURES_aot=""
 454       ENABLE_AOT="false"
 455     else
 456       if test "x$enable_aot" = "xyes" || HOTSPOT_CHECK_JVM_FEATURE(aot); then
 457         AC_MSG_RESULT([yes, forced])
 458       else
 459         AC_MSG_RESULT([yes])
 460       fi
 461       JVM_FEATURES_aot="aot"
 462     fi
 463   else
 464     if test "x$enable_aot" = "xno" || test "x$DISABLE_AOT" = "xaot"; then
 465       AC_MSG_RESULT([no, forced])
 466     else
 467       AC_MSG_RESULT([no])
 468     fi
 469     JVM_FEATURES_aot=""
 470     if HOTSPOT_CHECK_JVM_FEATURE(aot); then
 471       AC_MSG_ERROR([To enable aot, you must use --enable-aot])
 472     fi
 473   fi
 474 
 475   AC_SUBST(ENABLE_AOT)
 476 
 477   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 478     # Default to use link time optimizations on minimal on arm
 479     JVM_FEATURES_link_time_opt="link-time-opt"
 480   else
 481     JVM_FEATURES_link_time_opt=""
 482   fi
 483 
 484   # All variants but minimal (and custom) get these features


< prev index next >