summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2010-09-24 14:46:38 (GMT)
committermread <qt-info@nokia.com>2010-09-30 14:48:37 (GMT)
commit6bd02df13f6fc1dddc2c65a5d9b56fd9619c435e (patch)
treec920fa9f6dfc19ab6dd91159733dc812d895f0ea
parent7bcab85e924a1a904a4231492f5cbab8885d965e (diff)
downloadQt-6bd02df13f6fc1dddc2c65a5d9b56fd9619c435e.zip
Qt-6bd02df13f6fc1dddc2c65a5d9b56fd9619c435e.tar.gz
Qt-6bd02df13f6fc1dddc2c65a5d9b56fd9619c435e.tar.bz2
declaring fast allocation shrink hysteresis value
The allocator code copied from 10.1 would have no default value set for KHeapShrinkHysRatio, since it's no longer a patchable constant. This change gives it a value of 0x800, to be tuned for performance. Task-number: QT-3967 Reviewed-by: Shane Kearns
-rw-r--r--src/corelib/arch/symbian/qt_heapsetup_symbian.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/arch/symbian/qt_heapsetup_symbian.cpp b/src/corelib/arch/symbian/qt_heapsetup_symbian.cpp
index 4e2095d..d6b7351 100644
--- a/src/corelib/arch/symbian/qt_heapsetup_symbian.cpp
+++ b/src/corelib/arch/symbian/qt_heapsetup_symbian.cpp
@@ -43,6 +43,8 @@
#ifdef QT_USE_NEW_SYMBIAN_ALLOCATOR
+extern const TInt KHeapShrinkHysRatio = 0x800;
+
/*
* \internal
* Called from the qtmain.lib application wrapper.