mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
Block parallel JIT allocation on macos
This commit is contained in:
parent
ce9024efc5
commit
4d193ecb6a
2 changed files with 6 additions and 7 deletions
|
@ -253,6 +253,11 @@ uchar* jit_runtime::_alloc(usz size, usz align) noexcept
|
|||
|
||||
u8* jit_runtime::alloc(usz size, usz align, bool exec) noexcept
|
||||
{
|
||||
#if defined(__APPLE__)
|
||||
static std::mutex s_alloc_lock;
|
||||
std::lock_guard lock(s_alloc_lock);
|
||||
#endif
|
||||
|
||||
if (exec)
|
||||
{
|
||||
return add_jit_memory<s_code_pos, 0x0, utils::protection::wx>(size, align);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue