Bug 1542292 - Bump 64-bit executable quota to 2gb (r=jandem)
☠☠ backed out by ac6e176b391c ☠ ☠
authorLuke Wagner <luke@mozilla.com>
Mon, 08 Apr 2019 10:16:39 +0000
changeset 468371 55b2b70ee03601598418a38be63294b287e9444e
parent 468370 4fef2150bef9f1274c59862511b619756ee8381e
child 468372 f43307f2bad981db27268a2de5002cbb904b1a4d
push id82543
push userlwagner@mozilla.com
push dateMon, 08 Apr 2019 15:01:33 +0000
treeherderautoland@55b2b70ee036 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1542292
milestone68.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 1542292 - Bump 64-bit executable quota to 2gb (r=jandem) Differential Revision: https://phabricator.services.mozilla.com/D26329
js/src/jit/ProcessExecutableMemory.h
--- a/js/src/jit/ProcessExecutableMemory.h
+++ b/js/src/jit/ProcessExecutableMemory.h
@@ -14,17 +14,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 = 140 * 1024 * 1024;
 #else
-static const size_t MaxCodeBytesPerProcess = 1 * 1024 * 1024 * 1024;
+static const size_t MaxCodeBytesPerProcess = 2 * 1024 * 1024 * 1024;
 #endif
 
 // Limit on the number of bytes of code memory per buffer.  This limit comes
 // about because we encode an unresolved relative unconditional branch during
 // assembly as a branch instruction that carries the absolute offset of the next
 // branch instruction in the chain of branches that all reference the same
 // unresolved label.  For this architecture to work, no branch instruction may
 // lie at an offset greater than the maximum forward branch distance.  This is