mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
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
This commit is contained in:
parent
0851693cbe
commit
38861f6782
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ void* AllocateExecutableMemory(size_t size)
|
||||||
void* ptr = VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
|
void* ptr = VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
|
||||||
#else
|
#else
|
||||||
int map_flags = MAP_ANON | MAP_PRIVATE;
|
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
|
// 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
|
// prior to 10.14, it had restrictions on the number of JIT allocations that were removed
|
||||||
// in 10.14.
|
// in 10.14.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue