Commit 068186c
committed
Fix aarch64 macOS crash when SIP disabled (JLJITLinkMemoryManager)
Apple ARM CPUs treat the `ic ivau` as a memory read, which causes a confusing
crash in DualMapAllocator if we try using it on a wr_addr that has been
mprotected to `Prot::NO`, since we are still holding the allocator lock.
For Apple aarch64 systems with SIP disabled, this will result in some memory
savings, since DualMapAllocator will now work there. Like before, other JITLink
platforms, namely Linux aarch64 and RISC-V, will benefit too.
This re-lands #60105, after it was reverted in #60196. Thanks @giordano!1 parent 0546450 commit 068186c
1 file changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
558 | 557 | | |
559 | 558 | | |
560 | 559 | | |
| |||
0 commit comments