$OpenBSD: patch-mozilla_js_src_jit_ProcessExecutableMemory_h,v 1.4 2018/10/03 06:43:10 landry Exp $

Index: js/src/jit/ProcessExecutableMemory.h
--- js/src/jit/ProcessExecutableMemory.h.orig
+++ js/src/jit/ProcessExecutableMemory.h
@@ -14,7 +14,7 @@ namespace jit {
 
 // Limit on the number of bytes of executable memory to prevent JIT spraying
 // attacks.
-#if JS_BITS_PER_WORD == 32
+#if JS_BITS_PER_WORD == 32 || defined (__OpenBSD__)
 static const size_t MaxCodeBytesPerProcess = 140 * 1024 * 1024;
 #else
 static const size_t MaxCodeBytesPerProcess = 1 * 1024 * 1024 * 1024;
