mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1144361: Re-enable JIT code randomization on Win64. r=jandem
--HG-- extra : rebase_source : a41337fd2b4052b9f2e3e6e1f2c15e70be523f0d
This commit is contained in:
parent
cba9deedb9
commit
a1ae658f56
@ -229,15 +229,11 @@ js::jit::DeallocateExecutableMemory(void* addr, size_t bytes, size_t pageSize)
|
||||
ExecutablePool::Allocation ExecutableAllocator::systemAlloc(size_t n)
|
||||
{
|
||||
void* allocation = nullptr;
|
||||
// Randomization disabled to avoid a performance fault on x64 builds.
|
||||
// See bug 728623.
|
||||
#ifndef JS_CPU_X64
|
||||
if (!RandomizeIsBroken()) {
|
||||
void* randomAddress = computeRandomAllocationAddress();
|
||||
allocation = AllocateExecutableMemory(randomAddress, n, PAGE_EXECUTE_READWRITE,
|
||||
"js-jit-code", pageSize);
|
||||
}
|
||||
#endif
|
||||
if (!allocation) {
|
||||
allocation = AllocateExecutableMemory(nullptr, n, PAGE_EXECUTE_READWRITE,
|
||||
"js-jit-code", pageSize);
|
||||
|
Loading…
Reference in New Issue
Block a user