Bug 1337561 - Increase executable code allocation size on 64-bit (r=jandem)
authorLuke Wagner <luke@mozilla.com>
Thu, 23 Feb 2017 09:01:16 -0600
changeset 344593 8fad3aa8fd4661df1fd0eb23c78849aa55dacaac
parent 344592 c20304c7dd0bc18f307d578969e8722900604541
child 344594 7b63c26dd7c1776c35b6fb9afbe5a90f980e4147
push id31414
push usercbook@mozilla.com
push dateFri, 24 Feb 2017 10:47:41 +0000
treeherdermozilla-central@be661bae6cb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1337561
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1337561 - Increase executable code allocation size on 64-bit (r=jandem) MozReview-Commit-ID: DswlJQutGiC
js/src/jit/ProcessExecutableMemory.h
--- a/js/src/jit/ProcessExecutableMemory.h
+++ b/js/src/jit/ProcessExecutableMemory.h
@@ -12,17 +12,17 @@
 namespace js {
 namespace jit {
 
 // Limit on the number of bytes of executable memory to prevent JIT spraying
 // attacks.
 #if JS_BITS_PER_WORD == 32
 static const size_t MaxCodeBytesPerProcess = 128 * 1024 * 1024;
 #else
-static const size_t MaxCodeBytesPerProcess = 640 * 1024 * 1024;
+static const size_t MaxCodeBytesPerProcess = 1 * 1024 * 1024 * 1024;
 #endif
 
 // Executable code is allocated in 64K chunks. ExecutableAllocator uses pools
 // that are at least this big. Code we allocate does not necessarily have 64K
 // alignment though.
 static const size_t ExecutableCodePageSize = 64 * 1024;
 
 enum class ProtectionSetting {