Skip to content

Commit 053c812

Browse files
authored
Use -XX:+IProfileDuringStartupPhase in populate_scc.sh scripts (#482)
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 <[email protected]>
1 parent 66e06e2 commit 053c812

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

releases/24.0.0.1/full/helpers/build/populate_scc.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fi
2626
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
2727
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
2828
# The option has no effect on later JDKs.
29-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
29+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
30+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
3031
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
3132
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
3233
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

releases/24.0.0.1/kernel-slim/helpers/build/populate_scc.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fi
2626
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
2727
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
2828
# The option has no effect on later JDKs.
29-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
29+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
30+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
3031
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
3132
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
3233
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

releases/latest/beta/helpers/build/populate_scc.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fi
2626
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
2727
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
2828
# The option has no effect on later JDKs.
29-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
29+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
30+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
3031
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
3132
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
3233
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

releases/latest/full/helpers/build/populate_scc.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fi
2626
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
2727
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
2828
# The option has no effect on later JDKs.
29-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
29+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
30+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
3031
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
3132
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
3233
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

releases/latest/kernel-slim/helpers/build/populate_scc.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fi
2626
# In order to reduce the chances of this happening we use the -XX:+OriginalJDK8HeapSizeCompatibilityMode
2727
# option to revert to the old criteria, which results in AOT code that is more compatible, on average, with typical heap sizes/positions.
2828
# The option has no effect on later JDKs.
29-
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode $SCC"
29+
# Using -XX:+IProfileDuringStartupPhase to enforce IProfiler collection during the startup phase to better populate the SCC.
30+
export OPENJ9_JAVA_OPTIONS="-XX:+OriginalJDK8HeapSizeCompatibilityMode -XX:+IProfileDuringStartupPhase $SCC"
3031
export IBM_JAVA_OPTIONS="$OPENJ9_JAVA_OPTIONS"
3132
CREATE_LAYER="$OPENJ9_JAVA_OPTIONS,createLayer,groupAccess"
3233
DESTROY_LAYER="$OPENJ9_JAVA_OPTIONS,destroy"

0 commit comments

Comments
 (0)