From 3957a24188e5ee4980ae4aa366ad9d3ee00cedd8 Mon Sep 17 00:00:00 2001 From: Abdulrahman Alattas Date: Wed, 3 Jan 2024 14:54:37 -0500 Subject: [PATCH] Use -XX:+IProfileDuringStartupPhase in populate_scc.sh scripts Make use of `-XX:+IProfileDuringStartupPhase` in the `populate_scc.sh` script to enforce collecting IProfile information during JVM startup phase and have more information to store into the SCC. Signed-off-by: Abdulrahman Alattas --- ga/24.0.0.1/kernel/helpers/build/populate_scc.sh | 3 ++- ga/latest/kernel/helpers/build/populate_scc.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ga/24.0.0.1/kernel/helpers/build/populate_scc.sh b/ga/24.0.0.1/kernel/helpers/build/populate_scc.sh index 3c07a4e92..675415f29 100755 --- a/ga/24.0.0.1/kernel/helpers/build/populate_scc.sh +++ b/ga/24.0.0.1/kernel/helpers/build/populate_scc.sh @@ -42,7 +42,8 @@ fi # In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode # 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. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC" +# 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" 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 3c07a4e92..675415f29 100755 --- a/ga/latest/kernel/helpers/build/populate_scc.sh +++ b/ga/latest/kernel/helpers/build/populate_scc.sh @@ -42,7 +42,8 @@ fi # In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode # 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. -export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC" +# 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" export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS" CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess" DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"