mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Be pedantic about stack overflow on Linux and OS X.
Add some magic to the fault handler to handle stack overflow due to BLR optimization, and disable the optimization if fastmem is not enabled.
This commit is contained in:
parent
755bd2c445
commit
7ad9027593
9 changed files with 174 additions and 23 deletions
|
@ -12,8 +12,12 @@ void* AllocateMemoryPages(size_t size);
|
|||
void FreeMemoryPages(void* ptr, size_t size);
|
||||
void* AllocateAlignedMemory(size_t size,size_t alignment);
|
||||
void FreeAlignedMemory(void* ptr);
|
||||
void ReadProtectMemory(void* ptr, size_t size);
|
||||
void WriteProtectMemory(void* ptr, size_t size, bool executable = false);
|
||||
void UnWriteProtectMemory(void* ptr, size_t size, bool allowExecute = false);
|
||||
std::string MemUsage();
|
||||
|
||||
void GuardMemoryMake(void* ptr, size_t size);
|
||||
void GuardMemoryUnmake(void* ptr, size_t size);
|
||||
|
||||
inline int GetPageSize() { return 4096; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue