mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
JIT.cpp: fix overcommit bug (should have been Linux-specific)
Closes #9820 Co-authored-by: Eladash <elad3356p@gmail.com>
This commit is contained in:
parent
ad1027455a
commit
980be9e0e8
@ -23,8 +23,10 @@ static u8* get_jit_memory()
|
||||
static void* const s_memory2 = []() -> void*
|
||||
{
|
||||
void* ptr = utils::memory_reserve(0x80000000);
|
||||
#ifdef CAN_OVERCOMMIT
|
||||
utils::memory_commit(ptr, 0x80000000);
|
||||
utils::memory_protect(ptr, 0x40000000, utils::protection::wx);
|
||||
#endif
|
||||
return ptr;
|
||||
}();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user