diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-08-30 12:26:26 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-08-30 12:26:26 +0200 |
commit | f214aa5dbe2c4aa3e543aecc2b6ad96d7786862e (patch) | |
tree | dcf1a9a2d351b6ab9364f0cbd06a341a8935a706 /js/src/jit/ProcessExecutableMemory.h | |
parent | 0bc2511432fe0cdcae92aae71576b6eb9bad7f5c (diff) | |
download | UXP-f214aa5dbe2c4aa3e543aecc2b6ad96d7786862e.tar UXP-f214aa5dbe2c4aa3e543aecc2b6ad96d7786862e.tar.gz UXP-f214aa5dbe2c4aa3e543aecc2b6ad96d7786862e.tar.lz UXP-f214aa5dbe2c4aa3e543aecc2b6ad96d7786862e.tar.xz UXP-f214aa5dbe2c4aa3e543aecc2b6ad96d7786862e.zip |
Revert "Bug 1444668 - Avoid allocating large AssemblerBuffers. r=luke, r=bbouvier, a=RyanVM"
This reverts commit 9472136272f01b858412f2d9d7854d2daa82496f.
Diffstat (limited to 'js/src/jit/ProcessExecutableMemory.h')
-rw-r--r-- | js/src/jit/ProcessExecutableMemory.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/js/src/jit/ProcessExecutableMemory.h b/js/src/jit/ProcessExecutableMemory.h index a0e2fab98..078ce7cb7 100644 --- a/js/src/jit/ProcessExecutableMemory.h +++ b/js/src/jit/ProcessExecutableMemory.h @@ -17,14 +17,6 @@ namespace jit { // alignment though. static const size_t ExecutableCodePageSize = 64 * 1024; -// 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 = 1 * 1024 * 1024 * 1024; -#endif - enum class ProtectionSetting { Protected, // Not readable, writable, or executable. Writable, |