зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1299330 - Unbreak build on BSDs after bug 1287967. r=luke
MozReview-Commit-ID: KfZItwYpnzc --HG-- extra : transplant_source : K%FB%A4%CBA%3D%CC%FE%83J%F2%F2%CFU%96%D8%FE%20%F9%EE
This commit is contained in:
Родитель
90c10e0eba
Коммит
e7347cfd95
|
@ -551,14 +551,14 @@ class js::WasmArrayRawBuffer
|
|||
# ifdef XP_WIN
|
||||
if (!VirtualAlloc(dataPointer(), newMapped, MEM_RESERVE, PAGE_NOACCESS))
|
||||
return;
|
||||
# elif defined(XP_DARWIN)
|
||||
// No mechanism for remapping on MaxOS. Luckily shouldn't need it here
|
||||
// as most MacOS configs are 64 bit
|
||||
return;
|
||||
#else // Unix
|
||||
# elif defined(XP_LINUX)
|
||||
// Note this will not move memory (no MREMAP_MAYMOVE specified)
|
||||
if (MAP_FAILED == mremap(dataPointer(), mappedSize_, newMapped, 0))
|
||||
return;
|
||||
# else
|
||||
// No mechanism for remapping on MaxOS. Luckily shouldn't need it here
|
||||
// as most MacOS configs are 64 bit
|
||||
return;
|
||||
# endif // !XP_WIN
|
||||
|
||||
mappedSize_ = newMapped;
|
||||
|
|
Загрузка…
Ссылка в новой задаче