mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-17 09:18:11 +00:00
Add AOT cache for mc-image-helper on Java 25+ (#4341)
This commit is contained in:
1 parent
8f08edec05
commit
4cb8a05f9c
5 files changed
+43
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user