$OpenBSD: patch-Source_JavaScriptCore_jit_ExecutableAllocator_cpp,v 1.2 2018/09/04 07:12:47 ajacoutot Exp $

Index: Source/JavaScriptCore/jit/ExecutableAllocator.cpp
--- Source/JavaScriptCore/jit/ExecutableAllocator.cpp.orig
+++ Source/JavaScriptCore/jit/ExecutableAllocator.cpp
@@ -92,7 +92,8 @@ static const size_t fixedExecutableMemoryPoolSize = FI
 static const size_t fixedExecutableMemoryPoolSize = 16 * 1024 * 1024;
 #elif CPU(ARM64)
 static const size_t fixedExecutableMemoryPoolSize = 64 * 1024 * 1024;
-#elif CPU(X86_64)
+// We don't want an initial allocation of 1GB, it's above the default ulimit
+#elif CPU(X86_64) && !defined(__OpenBSD__)
 static const size_t fixedExecutableMemoryPoolSize = 1024 * 1024 * 1024;
 #else
 static const size_t fixedExecutableMemoryPoolSize = 32 * 1024 * 1024;
