diff options
| author | Skyler Saleh <skylersaleh@gmail.com> | 2021-04-17 15:53:27 -0700 |
|---|---|---|
| committer | Skyler Saleh <skylersaleh@gmail.com> | 2021-05-22 15:25:18 -0700 |
| commit | 38861f6782948d8124bd4fa7f2883302fc75e82d (patch) | |
| tree | ff4670d60620b47d365061a7a2021fc8fd48444e /Source/Core/Common/MemoryUtil.cpp | |
| parent | 0851693cbe98cf4602293e384bc274fd914dead9 (diff) | |
Apple M1: x86_64 MAP_JIT
- Enabled MAP_JIT on x86_64 after confirming that pthread_jit* calls are only
required for MAP_JIT pages on Apple Silicon
Diffstat (limited to 'Source/Core/Common/MemoryUtil.cpp')
| -rw-r--r-- | Source/Core/Common/MemoryUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp index 7aec9df40f..ce5182c976 100644 --- a/Source/Core/Common/MemoryUtil.cpp +++ b/Source/Core/Common/MemoryUtil.cpp @@ -40,7 +40,7 @@ void* AllocateExecutableMemory(size_t size) void* ptr = VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); #else int map_flags = MAP_ANON | MAP_PRIVATE; -#if defined(_M_ARM_64) && defined(__APPLE__) +#if defined(__APPLE__) // This check is in place to prepare for x86_64 MAP_JIT support. While MAP_JIT did exist // prior to 10.14, it had restrictions on the number of JIT allocations that were removed // in 10.14. |
