Add AOT cache for mc-image-helper on Java 25+ (#4341)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2026-10-16 17:18:11 -05:00
1 parent 8f08edec05
commit 4cb8a05f9c
5 files changed
+43

No files matched your search

+6
View File
@@ -65,6 +65,12 @@ if isTrue "${DEBUG_MEMORY:-false}"; then
free -m | applyLogPrefix
fi
: "${MC_IMAGE_HELPER_AOT_CACHE:=/usr/share/mc-image-helper/cache/aot.cache}"
if (( $(getJavaRelease) >= 25 )) && [ -f "${MC_IMAGE_HELPER_AOT_CACHE}" ]; then
MC_IMAGE_HELPER_OPTS+=" -XX:AOTMode=auto -XX:AOTCache=${MC_IMAGE_HELPER_AOT_CACHE}"
export MC_IMAGE_HELPER_OPTS
fi
##########################################
# Setup RCON password