summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPasi Pentikainen <ext-pasi.a.pentikainen@nokia.com>2012-05-07 15:54:55 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-05-08 11:33:59 (GMT)
commit51f6e634fdd3b58ef0586e5f2b754b7fbba6b52c (patch)
treefaf41ff18db75a830e0a9f95ee4503d087a86a68 /src
parente32b95936110d1557b8516bba150531705ffb948 (diff)
downloadQt-51f6e634fdd3b58ef0586e5f2b754b7fbba6b52c.zip
Qt-51f6e634fdd3b58ef0586e5f2b754b7fbba6b52c.tar.gz
Qt-51f6e634fdd3b58ef0586e5f2b754b7fbba6b52c.tar.bz2
Symbian: fix AlignedBlockAllocator initialization on emulator
Correction to assert in AlignedBlockAllocator contructor. It had a typo, leading to assert against uninitialized data, which succeeded in all other environments, except in emulator urel version (which zeroes heap allocations). Task-number: ou1cimx1#998546 Change-Id: I9b8a76f1871287263483cfe09b1e962570f9990d Reviewed-by: Pauli Järvinen <ext-pauli.p.jarvinen@nokia.com> Reviewed-by: Murray Read <ext-murray.2.read@nokia.com> Reviewed-by: Pasi Pentikäinen <ext-pasi.a.pentikainen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian/BlockAllocatorSymbian.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian/BlockAllocatorSymbian.cpp b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian/BlockAllocatorSymbian.cpp
index f09bf8e..7ed8b96 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian/BlockAllocatorSymbian.cpp
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian/BlockAllocatorSymbian.cpp
@@ -44,7 +44,7 @@ AlignedBlockAllocator::AlignedBlockAllocator(TUint32 reservationSize, TUint32 bl
m_blockSize(blockSize)
{
TInt err = m_lock.CreateLocal();
- __ASSERT_ALWAYS(m_map.bits, User::Panic(_L("AlignedBlkAlloc0"), err));
+ __ASSERT_ALWAYS(err == KErrNone, User::Panic(_L("AlignedBlkAlloc0"), err));
// Get system's page size value.
SYMBIAN_PAGESIZE(m_pageSize);