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
Showing
想要评论请 注册 或 登录