Bug 1144361: Re-enable JIT code randomization on Win64. r=jandem

--HG--
extra : rebase_source : a41337fd2b4052b9f2e3e6e1f2c15e70be523f0d
This commit is contained in:
David Major 2015-05-13 10:38:22 -04:00
Родитель cba9deedb9
Коммит a1ae658f56
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -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);