From 949f72ec90edb11afdba7bb2c1b5142111f48529 Mon Sep 17 00:00:00 2001 From: miuponn Date: Thu, 13 Aug 2026 13:24:09 -0700 Subject: [PATCH] Disable GCContainerHeuristics option for latest + ga to fix rebuild failures on ibmjava 8.0.8.70 --- ga/25.0.0.12/kernel/helpers/build/populate_scc.sh | 7 ++++++- ga/26.0.0.3/kernel/helpers/build/populate_scc.sh | 7 ++++++- ga/26.0.0.6/kernel/helpers/build/populate_scc.sh | 7 ++++++- ga/26.0.0.8/kernel/helpers/build/populate_scc.sh | 7 ++++++- ga/latest/kernel/helpers/build/populate_scc.sh | 7 ++++++- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/ga/25.0.0.12/kernel/helpers/build/populate_scc.sh b/ga/25.0.0.12/kernel/helpers/build/populate_scc.sh index ac2b762e8..6fbb063e7 100755 --- a/ga/25.0.0.12/kernel/helpers/build/populate_scc.sh +++ b/ga/25.0.0.12/kernel/helpers/build/populate_scc.sh @@ -45,7 +45,12 @@ fi # option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions. # The option has no effect on later JDKs. # Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" +# Disable GCContainerHeuristics for ibmjava JVMs as workaround for ibmjava 8.0.8.70 build failures +GC_OPT="" +if [ -d "/opt/ibm/java" ]; then + GC_OPT="-XX:-GCContainerHeuristics " +fi +export OPENJ9_JAVA_OPTIONS="${GC_OPT}-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS" CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess" DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy" diff --git a/ga/26.0.0.3/kernel/helpers/build/populate_scc.sh b/ga/26.0.0.3/kernel/helpers/build/populate_scc.sh index 0013505ae..661f253b7 100755 --- a/ga/26.0.0.3/kernel/helpers/build/populate_scc.sh +++ b/ga/26.0.0.3/kernel/helpers/build/populate_scc.sh @@ -45,7 +45,12 @@ fi # option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions. # The option has no effect on later JDKs. # Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" +# Disable GCContainerHeuristics for ibmjava JVMs as workaround for ibmjava 8.0.8.70 build failures +GC_OPT="" +if [ -d "/opt/ibm/java" ]; then + GC_OPT="-XX:-GCContainerHeuristics " +fi +export OPENJ9_JAVA_OPTIONS="${GC_OPT}-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS" CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess" DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy" diff --git a/ga/26.0.0.6/kernel/helpers/build/populate_scc.sh b/ga/26.0.0.6/kernel/helpers/build/populate_scc.sh index 0013505ae..661f253b7 100755 --- a/ga/26.0.0.6/kernel/helpers/build/populate_scc.sh +++ b/ga/26.0.0.6/kernel/helpers/build/populate_scc.sh @@ -45,7 +45,12 @@ fi # option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions. # The option has no effect on later JDKs. # Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" +# Disable GCContainerHeuristics for ibmjava JVMs as workaround for ibmjava 8.0.8.70 build failures +GC_OPT="" +if [ -d "/opt/ibm/java" ]; then + GC_OPT="-XX:-GCContainerHeuristics " +fi +export OPENJ9_JAVA_OPTIONS="${GC_OPT}-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS" CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess" DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy" diff --git a/ga/26.0.0.8/kernel/helpers/build/populate_scc.sh b/ga/26.0.0.8/kernel/helpers/build/populate_scc.sh index 0013505ae..661f253b7 100755 --- a/ga/26.0.0.8/kernel/helpers/build/populate_scc.sh +++ b/ga/26.0.0.8/kernel/helpers/build/populate_scc.sh @@ -45,7 +45,12 @@ fi # option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions. # The option has no effect on later JDKs. # Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" +# Disable GCContainerHeuristics for ibmjava JVMs as workaround for ibmjava 8.0.8.70 build failures +GC_OPT="" +if [ -d "/opt/ibm/java" ]; then + GC_OPT="-XX:-GCContainerHeuristics " +fi +export OPENJ9_JAVA_OPTIONS="${GC_OPT}-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS" CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess" DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy" diff --git a/ga/latest/kernel/helpers/build/populate_scc.sh b/ga/latest/kernel/helpers/build/populate_scc.sh index 0013505ae..661f253b7 100755 --- a/ga/latest/kernel/helpers/build/populate_scc.sh +++ b/ga/latest/kernel/helpers/build/populate_scc.sh @@ -45,7 +45,12 @@ fi # option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions. # The option has no effect on later JDKs. # Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" +# Disable GCContainerHeuristics for ibmjava JVMs as workaround for ibmjava 8.0.8.70 build failures +GC_OPT="" +if [ -d "/opt/ibm/java" ]; then + GC_OPT="-XX:-GCContainerHeuristics " +fi +export OPENJ9_JAVA_OPTIONS="${GC_OPT}-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC" export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS" CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess" DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"