Skip to content

Commit 4eb4bd6

Browse files
committed
Dump CDS cache on all Java installations
This ensures that the CDS cache is generated everywhere. It seems that on Raspbian this wasn't the case. This is probably not necessary on EV3 with JRI, but this change does it even there, to be extra-sure.
1 parent abda578 commit 4eb4bd6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

installer-jessie.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ function java_install_jri() {
190190

191191
JAVA_REAL_EXE="$(which java)"
192192
CLASSLIST="$JRI_CLASSLIST"
193-
194-
write_log "dumping java cds"
195-
"$JAVA_REAL_EXE" -Xshare:dump
196193
return $?
197194
}
198195

@@ -257,6 +254,9 @@ function do_fixup_perms() {
257254
######################
258255
# Print Java version
259256
function print_java() {
257+
write_log "dumping cds cache"
258+
"$JAVA_REAL_EXE" -Xshare:dump
259+
260260
echo
261261
echo "-> Java version:"
262262
"$JAVA_REAL_EXE" -version

installer.sh

+3
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ function do_fixup_perms() {
233233
######################
234234
# Print Java version
235235
function print_java() {
236+
write_log "dumping cds cache"
237+
"$JAVA_REAL_EXE" -Xshare:dump
238+
236239
echo
237240
echo "-> Java version:"
238241
"$JAVA_REAL_EXE" -version

0 commit comments

Comments
 (0)