Feat[JDK21]: implement mirror mapping

This mode can be optionally enabled using -XX:+MirrorMappedCodeCache. Implementation of this is required on iOS 26
This commit is contained in:
khanhduytran0 2025-07-02 12:10:59 +07:00
parent 0b28f59414
commit a8ca6a4c1c
4 changed files with 1516 additions and 2 deletions

View File

@ -92,7 +92,7 @@ git reset --hard
if [[ "$BUILD_IOS" != "1" ]]; then
find ../patches/jre_${TARGET_VERSION}/android -name "*.diff" -print0 | xargs -0 -I {} sh -c 'echo "Applying {}" && git apply --reject --whitespace=fix {} || (echo "git apply failed (Android patch set)" && exit 1)'
else
find ../patches/jre_${TARGET_VERSION}/ios -name "*.diff" -print0 | xargs -0 -I {} sh -c 'echo "Applying {}" && git apply --reject --whitespace=fix {} || (echo "git apply failed (iOs patch set)" && exit 1)'
find ../patches/jre_${TARGET_VERSION}/ios -name "*.diff" -print0 | sort -z | xargs -0 -I {} sh -c 'echo "Applying {}" && git apply --reject --whitespace=fix {} || (echo "git apply failed (iOs patch set)" && exit 1)'
# Hack: exclude building macOS stuff
desktop_mac=src/java.desktop/macosx

View File

@ -6,5 +6,5 @@ set -e
export FREETYPE_DIR=`pwd`/freetype-${BUILD_FREETYPE_VERSION}/build_android-${TARGET_SHORT}
export CUPS_DIR=`pwd`/cups-2.2.4
cd openjdk-${TARGET_VERSION}/build/${JVM_PLATFORM}-${TARGET_JDK}-${JVM_VARIANTS}-release
cd openjdk-${TARGET_VERSION}/build/${JVM_PLATFORM}-${TARGET_JDK}-${JVM_VARIANTS}-${JDK_DEBUG_LEVEL}
make JOBS=4 images

File diff suppressed because it is too large Load Diff