summaryrefslogtreecommitdiffstats
path: root/js/src/jit/ProcessExecutableMemory.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-08-30 12:26:26 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-08-30 12:26:26 +0200
commitf214aa5dbe2c4aa3e543aecc2b6ad96d7786862e (patch)
treedcf1a9a2d351b6ab9364f0cbd06a341a8935a706 /js/src/jit/ProcessExecutableMemory.h
parent0bc2511432fe0cdcae92aae71576b6eb9bad7f5c (diff)
downloadUXP-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.h8
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,