Commit f32c98f4 authored by Andy Shaw's avatar Andy Shaw Committed by The Qt Project
Browse files

Add a means to specify that the VM_POOL_SIZE can be 1gb and not 2gb


Due to a reported problem where the reserving of 2gb was too big under
certain circumstances then in order to provide a means for people who
hit this problem a define is added so that the VM_POOL_SIZE is set to be
1gb instead. This is an optional define and the default is for the size
to be 2gb which keeps it to current behavior.

Change-Id: I73200e1bcfcf7b37c6ba62f8b7bcf217f239dfcb
Reviewed-by: default avatarJędrzej Nowacki <jedrzej.nowacki@digia.com>
parent 3f960df4
No related merge requests found
Showing with 4 additions and 0 deletions
......@@ -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.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment