summaryrefslogtreecommitdiff
path: root/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp
index e1237e4..5233923 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp
@@ -39,7 +39,11 @@
#if CPU(X86_64)
// These limits suitable on 64-bit platforms (particularly x86-64, where we require all jumps to have a 2Gb max range).
+#ifdef QT_USE_ONEGB_VMALLOCATOR
+ #define VM_POOL_SIZE (1024u * 1024u * 1024u) // 1Gb
+#else
#define VM_POOL_SIZE (2u * 1024u * 1024u * 1024u) // 2Gb
+#endif
#define COALESCE_LIMIT (16u * 1024u * 1024u) // 16Mb
#else
// These limits are hopefully sensible on embedded platforms.