-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load R2R images on osx-arm64 according to Apple's guidelines (#67118)
* Load R2R images on osx-arm64 according to Apple's guidelines * Address review comments * use MAP_PRIVATE for the mapped file * correct the condition * Use PAL_JitWriteProtect once per relocation * Flush instruction cache during relocation on Apple Silicon * Fix typo in comment * Use PAL_JitWriteProtect in the same spots where protection is toggled This allows to keep the instruction cache flush logic identical between platforms. * Revert the change for Intel to avoid any regression * Always unmap the file to avoid leaks + log errors
- Loading branch information
1 parent
09d8346
commit 6409642
Showing
2 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters