mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
Fix HAS_OVERCOMMIT usage in JIT.cpp
This commit is contained in:
parent
fc77fb9b4c
commit
7d56069243
1 changed files with 0 additions and 4 deletions
|
@ -10,7 +10,6 @@
|
|||
#include <zlib.h>
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/mman.h>
|
||||
#define CAN_OVERCOMMIT
|
||||
#endif
|
||||
|
||||
|
@ -22,11 +21,8 @@ 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…
Add table
Reference in a new issue