< prev index next >

make/autoconf/hotspot.m4

Print this page




 324 
 325   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 326     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 327   fi
 328 
 329   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 330     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 331   fi
 332 
 333   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 334   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 335     if test "x$OPENJDK_TARGET_OS" != xaix; then
 336       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 337         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 338       fi
 339     fi
 340   fi
 341 
 342   # Only enable Shenandoah on supported arches
 343   AC_MSG_CHECKING([if shenandoah can be built])
 344   if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 345     AC_MSG_RESULT([yes])
 346   else
 347     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"
 348     AC_MSG_RESULT([no, platform not supported])
 349   fi
 350 
 351   # Only enable ZGC on supported platforms
 352   AC_MSG_CHECKING([if zgc can be built])
 353   if (test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64") || \
 354      (test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"); then
 355     AC_MSG_RESULT([yes])
 356   else
 357     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 358     AC_MSG_RESULT([no, platform not supported])
 359   fi
 360 
 361   # Disable unsupported GCs for Zero
 362   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 363     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc shenandoahgc"
 364   fi
 365 
 366   # Turn on additional features based on other parts of configure
 367   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 368     JVM_FEATURES="$JVM_FEATURES dtrace"
 369   else
 370     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 371       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 372     fi
 373   fi
 374 




 324 
 325   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 326     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 327   fi
 328 
 329   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 330     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 331   fi
 332 
 333   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 334   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 335     if test "x$OPENJDK_TARGET_OS" != xaix; then
 336       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 337         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 338       fi
 339     fi
 340   fi
 341 
 342   # Only enable Shenandoah on supported arches
 343   AC_MSG_CHECKING([if shenandoah can be built])
 344   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 345     AC_MSG_RESULT([yes])
 346   else
 347     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"
 348     AC_MSG_RESULT([no, platform not supported])
 349   fi
 350 
 351   # Only enable ZGC on supported platforms
 352   AC_MSG_CHECKING([if zgc can be built])
 353   if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then

 354     AC_MSG_RESULT([yes])
 355   else
 356     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 357     AC_MSG_RESULT([no, platform not supported])
 358   fi
 359 
 360   # Disable unsupported GCs for Zero
 361   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 362     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc shenandoahgc"
 363   fi
 364 
 365   # Turn on additional features based on other parts of configure
 366   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 367     JVM_FEATURES="$JVM_FEATURES dtrace"
 368   else
 369     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 370       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 371     fi
 372   fi
 373 


< prev index next >