Skip to content

Commit 55204b0

Browse files
khanhduytran0Mathias-Boulay
authored andcommitted
Fix(iOS): fix patch
1 parent e66dcf8 commit 55204b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)