mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1020517 - OdinMonkey: Loosen the munmap assert to ignore ENOMEM r=luke
This commit is contained in:
parent
53ca33e10a
commit
a625bd4260
@ -6,6 +6,8 @@
|
||||
|
||||
#include "jit/AsmJSModule.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#ifndef XP_WIN
|
||||
# include <sys/mman.h>
|
||||
#endif
|
||||
@ -97,7 +99,7 @@ DeallocateExecutableMemory(uint8_t *code, size_t totalBytes)
|
||||
#ifdef XP_WIN
|
||||
JS_ALWAYS_TRUE(VirtualFree(code, 0, MEM_RELEASE));
|
||||
#else
|
||||
JS_ALWAYS_TRUE(munmap(code, totalBytes) == 0);
|
||||
JS_ALWAYS_TRUE(munmap(code, totalBytes) == 0 || errno == ENOMEM);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user