Skip to content

Commit b9a4f8b

Browse files
committed
macOS: Fix JIT crash on Apple Silicon
- Add 'com.apple.security.cs.allow-jit' entitlement to 'other/osx/entitlements.xml' to allow W^X memory protection changes. - Remove redundant 'mprotect' workaround in 'src/jit_aarch64.c' as the entitlement ensures 'pthread_jit_write_protect_np' works correctly.
1 parent db5e09f commit b9a4f8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

other/osx/entitlements.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<!-- Required for Hot-Reloading on Apple Silicon (W^X memory protection) -->
6+
<key>com.apple.security.cs.allow-jit</key>
7+
<true/>
58
<key>com.apple.security.get-task-allow</key>
69
<true/>
710
</dict>

0 commit comments

Comments
 (0)