Commit ef57d84
committed
Fix JIT memprot and cache invalidation on Arm64
- Move pthread_jit_write_protect_np(false) before reading MAP_JIT memory
in update_branch_imm since Apple Silicon requires write mode for both
read and write operations on MAP_JIT memory
- Add missing cache invalidation in resolve_jumps() for x86_64 after
patching jump offsets1 parent 9ba5553 commit ef57d84
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
596 | 600 | | |
597 | 601 | | |
598 | 602 | | |
| |||
607 | 611 | | |
608 | 612 | | |
609 | 613 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| |||
2231 | 2232 | | |
2232 | 2233 | | |
2233 | 2234 | | |
| 2235 | + | |
2234 | 2236 | | |
2235 | 2237 | | |
2236 | 2238 | | |
| |||
0 commit comments