$OpenBSD: patch-mozilla_js_src_jit_ProcessExecutableMemory_cpp,v 1.4 2017/04/06 07:12:21 landry Exp $

https://bugzilla.mozilla.org/show_bug.cgi?id=1347139

--- mozilla/js/src/jit/ProcessExecutableMemory.cpp.orig	Wed Feb 15 17:34:41 2017
+++ mozilla/js/src/jit/ProcessExecutableMemory.cpp	Thu Mar 23 08:42:19 2017
@@ -390,7 +390,12 @@ class PageBitSet
 #if JS_BITS_PER_WORD == 32
 static const size_t MaxCodeBytesPerProcess = 128 * 1024 * 1024;
 #else
+#ifdef __OpenBSD__
+// default datasize is 768Mb on OpenBSD
+static const size_t MaxCodeBytesPerProcess = 128 * 1024 * 1024;
+#else
 static const size_t MaxCodeBytesPerProcess = 1 * 1024 * 1024 * 1024;
+#endif
 #endif
 
 // Per-process executable memory allocator. It reserves a block of memory of
