[FIX] iOS JDK 21 build, update to 21.0.8

Co-authored-by: Duy Tran <khanhduytran0@users.noreply.github.com>
This commit is contained in:
Eva Isabella Luna 2025-06-24 19:22:23 -06:00
parent cc365ba733
commit 97c9d576c7
No known key found for this signature in database
GPG Key ID: 3716ACDC524F1879
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
set -e set -e
if [[ $TARGET_VERSION -eq 21 ]]; then if [[ $TARGET_VERSION -eq 21 ]]; then
git clone --branch jdk21.0.1 --depth 1 https://github.com/openjdk/jdk21u openjdk-21 git clone --branch jdk-21.0.8+7 --depth 1 https://github.com/openjdk/jdk21u openjdk-21
else else
git clone --depth 1 https://github.com/openjdk/jdk17u openjdk-17 git clone --depth 1 https://github.com/openjdk/jdk17u openjdk-17
fi fi

View File

@ -508,7 +508,7 @@ index 144ca8213..05771bc9b 100644
+ int prot = exec&&os::Bsd::isRWXJITAvailable() ? PROT_READ|PROT_WRITE|PROT_EXEC : PROT_READ|PROT_WRITE; + int prot = exec&&os::Bsd::isRWXJITAvailable() ? PROT_READ|PROT_WRITE|PROT_EXEC : PROT_READ|PROT_WRITE;
#if defined(__OpenBSD__) #if defined(__OpenBSD__)
// XXX: Work-around mmap/MAP_FIXED bug temporarily on OpenBSD // XXX: Work-around mmap/MAP_FIXED bug temporarily on OpenBSD
Events::log(nullptr, "Protecting memory [" INTPTR_FORMAT "," INTPTR_FORMAT "] with protection modes %x", p2i(addr), p2i(addr+size), prot); Events::log_memprotect(nullptr, "Protecting memory [" INTPTR_FORMAT "," INTPTR_FORMAT "] with protection modes %x", p2i(addr), p2i(addr+size), prot);
@@ -1649,7 +1669,7 @@ bool os::remove_stack_guard_pages(char* addr, size_t size) { @@ -1649,7 +1669,7 @@ bool os::remove_stack_guard_pages(char* addr, size_t size) {
static char* anon_mmap(char* requested_addr, size_t bytes, bool exec) { static char* anon_mmap(char* requested_addr, size_t bytes, bool exec) {
// MAP_FIXED is intentionally left out, to leave existing mappings intact. // MAP_FIXED is intentionally left out, to leave existing mappings intact.