Skip to content

Commit 3d2c3c2

Browse files
authored
Use -XX:+IProfileDuringStartupPhase in populate_scc.sh scripts (#564)
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 <rmnattas@gmail.com>
1 parent 47a0c61 commit 3d2c3c2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ga/24.0.0.1/kernel/helpers/build/populate_scc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ fi
4242
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
4343
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
4444
# The option has no effect on later JDKs.
45-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
45+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
46+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
4647
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
4748
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
4849
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

ga/latest/kernel/helpers/build/populate_scc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ fi
4242
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
4343
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
4444
# The option has no effect on later JDKs.
45-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
45+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
46+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
4647
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
4748
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
4849
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

0 commit comments

Comments
 (0)