blob: 968cc3cc9a6c746695ff2be5d943d59f579707d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$OpenBSD: patch-Source_JavaScriptCore_jit_ExecutableAllocator_h,v 1.2 2013/10/06 14:03:42 landry Exp $
https://bugs.webkit.org/show_bug.cgi?id=61137
--- Source/JavaScriptCore/jit/ExecutableAllocator.h.orig Tue Feb 4 17:38:03 2014
+++ Source/JavaScriptCore/jit/ExecutableAllocator.h Fri Feb 14 20:41:39 2014
@@ -104,7 +104,8 @@ class DemandExecutableAllocator;
#if ENABLE(EXECUTABLE_ALLOCATOR_FIXED)
#if CPU(ARM) || CPU(ARM64)
static const size_t fixedExecutableMemoryPoolSize = 16 * 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;
|