System: Allocate JIT space before fastmem area

On Intel MacOS 14, the fastmem area gets allocated close to the
executable base, leaving no region free +/- 2GB for the JIT area.
This commit is contained in:
Stenzek
2024-06-26 16:41:47 +10:00
parent 8c1228a7aa
commit ebf50edb79
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ bool System::Internal::CPUThreadInitialize(Error* error)
}
#endif
if (!Bus::AllocateMemory(error) || !CPU::CodeCache::ProcessStartup(error))
if (!CPU::CodeCache::ProcessStartup(error) || !Bus::AllocateMemory(error))
{
CPUThreadShutdown();
return false;