diff --git a/make/autoconf/hotspot.m4 b/make/autoconf/hotspot.m4 index b822a691e43..d7ebc918419 100644 --- a/make/autoconf/hotspot.m4 +++ b/make/autoconf/hotspot.m4 @@ -325,17 +325,13 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES], fi fi - # Only enable ZGC on Linux x86_64 - AC_MSG_CHECKING([if zgc should be built]) - if HOTSPOT_CHECK_JVM_FEATURE(zgc); then - if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then - AC_MSG_RESULT([yes]) - else - DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc" - AC_MSG_RESULT([no, platform not supported]) - fi + # Only enable ZGC on supported platforms + AC_MSG_CHECKING([if zgc can be built]) + if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then + AC_MSG_RESULT([yes]) else - AC_MSG_RESULT([no]) + DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc" + AC_MSG_RESULT([no, platform not supported]) fi # Disable unsupported GCs for Zero @@ -474,7 +470,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES], fi # All variants but minimal (and custom) get these features - NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs" + NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs zgc" # Disable CDS on AIX. if test "x$OPENJDK_TARGET_OS" = "xaix"; then diff --git a/make/conf/jib-profiles.js b/make/conf/jib-profiles.js index b85704f11f1..2a0b94502df 100644 --- a/make/conf/jib-profiles.js +++ b/make/conf/jib-profiles.js @@ -688,14 +688,6 @@ var getJibProfilesProfiles = function (input, common, data) { profiles[openName].artifacts["jdk"].remote)); }); - // Enable ZGC in linux-x64-open builds - [ "linux-x64-open" ].forEach(function (name) { - var configureArgs = { configure_args: [ "--with-jvm-features=zgc" ] }; - var debugName = name + common.debug_suffix; - profiles[name] = concatObjects(profiles[name], configureArgs); - profiles[debugName] = concatObjects(profiles[debugName], configureArgs); - }); - // Generate cmp-baseline profiles for each main profile and their // corresponding debug profile. This profile does a compare build run with no // changes to verify that the compare script has a clean baseline