Skip to content

Commit

Permalink
Bug 1527597 - ReserveProcessExecutableMemory should use MAP_NORESERVE…
Browse files Browse the repository at this point in the history
… r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D49612

--HG--
extra : moz-landing-system : lando
  • Loading branch information
psumbera committed Oct 18, 2019
1 parent 54c4fda commit 8ebf1d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/jit/ProcessExecutableMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ static void* ReserveProcessExecutableMemory(size_t bytes) {
// mmap will pick a different address.
void* randomAddr = ComputeRandomAllocationAddress();
void* p = MozTaggedAnonymousMmap(randomAddr, bytes, PROT_NONE,
MAP_PRIVATE | MAP_ANON, -1, 0,
"js-executable-memory");
MAP_NORESERVE | MAP_PRIVATE | MAP_ANON, -1,
0, "js-executable-memory");
if (p == MAP_FAILED) {
return nullptr;
}
Expand Down

0 comments on commit 8ebf1d6

Please sign in to comment.