Lines 1-26
Link Here
|
1 |
|
|
|
2 |
|
3 |
--- Source/JavaScriptCore/jit/ExecutableAllocator.h.orig 2014-12-25 12:52:32.786521149 +0100 |
4 |
+++ Source/JavaScriptCore/jit/ExecutableAllocator.h 2014-12-25 12:52:41.921520911 +0100 |
5 |
@@ -104,7 +104,8 @@ |
6 |
#if ENABLE(EXECUTABLE_ALLOCATOR_FIXED) |
7 |
#if CPU(ARM) || CPU(ARM64) |
8 |
static const size_t fixedExecutableMemoryPoolSize = 16 * 1024 * 1024; |
9 |
-#elif CPU(X86_64) |
10 |
+// We don't want an initial allocation of 1GB, it's above the default ulimit |
11 |
+#elif CPU(X86_64) && !defined(__OpenBSD__) && !defined(__FreeBSD__) |
12 |
static const size_t fixedExecutableMemoryPoolSize = 1024 * 1024 * 1024; |
13 |
#else |
14 |
static const size_t fixedExecutableMemoryPoolSize = 32 * 1024 * 1024; |
15 |
@@ -146,6 +147,11 @@ |
16 |
{ |
17 |
reprotectRegion(start, size, Executable); |
18 |
} |
19 |
+#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG) |
20 |
+ static void cacheFlush(void* code, size_t size) |
21 |
+ { |
22 |
+ __clear_cache(code, reinterpret_cast<char*>(code) + size); |
23 |
+ } |
24 |
#else |
25 |
static void makeWritable(void*, size_t) {} |
26 |
static void makeExecutable(void*, size_t) {} |