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 373620 8fad3aa8fd4661df1fd0eb23c78849aa55dacaac
parent 373619 c20304c7dd0bc18f307d578969e8722900604541
child 373621 7b63c26dd7c1776c35b6fb9afbe5a90f980e4147
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1337561
milestone54.0a1
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 {