Revert "Add AOT cache for mc-image-helper on Java 25+" (#4344)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2026-10-17 07:43:39 -05:00
1 parent 4cb8a05f9c
commit 2ae1097bb9
5 files changed
-43

No files matched your search

-22
View File
@@ -1,22 +0,0 @@
#!/bin/bash
set -e
if [ "${ENABLE_MC_HELPER_AOT_WARMUP}" = "1" ]; then
echo "Warming mc-image-helper AOT cache at ${MC_IMAGE_HELPER_AOT_CACHE}"
mkdir -p "$(dirname "${MC_IMAGE_HELPER_AOT_CACHE}")"
aot_config=/tmp/mc-image-helper.aotconf
# record config
if ! MC_IMAGE_HELPER_OPTS="-XX:AOTMode=record -XX:AOTConfiguration=${aot_config}" mc-image-helper java-release > /dev/null; then
echo "Failed to record AOT configuration"
exit 1
fi
# create cache
if ! MC_IMAGE_HELPER_OPTS="-XX:AOTMode=create -XX:AOTConfiguration=${aot_config} -XX:AOTCache=${MC_IMAGE_HELPER_AOT_CACHE}" mc-image-helper java-release > /dev/null; then
echo "Failed to create AOT cache"
exit 1
fi
else
echo "Skipping mc-image-helper AOT warmup"
fi