Skip to content

Commit 563d28e

Browse files
committed
Fix(iOS): fix patch
1 parent 0190182 commit 563d28e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

patches/jre_17/ios/jdk17u_ios.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ index 243c12ce3..879f28df3 100644
502502
+ int prot = exec&&os::Bsd::isRWXJITAvailable() ? PROT_READ|PROT_WRITE|PROT_EXEC : PROT_READ|PROT_WRITE;
503503
#if defined(__OpenBSD__)
504504
// XXX: Work-around mmap/MAP_FIXED bug temporarily on OpenBSD
505-
Events::log(NULL, "Protecting memory [" INTPTR_FORMAT "," INTPTR_FORMAT "] with protection modes %x", p2i(addr), p2i(addr+size), prot);
505+
Events::log_memprotect(NULL, "Protecting memory [" INTPTR_FORMAT "," INTPTR_FORMAT "] with protection modes %x", p2i(addr), p2i(addr+size), prot);
506506
@@ -1720,7 +1740,7 @@ bool os::remove_stack_guard_pages(char* addr, size_t size) {
507507
static char* anon_mmap(char* requested_addr, size_t bytes, bool exec) {
508508
// MAP_FIXED is intentionally left out, to leave existing mappings intact.

patches/jre_21/ios/jdk21u_ios.diff

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

0 commit comments

Comments
 (0)