Skip to content

Commit f52aa9d

Browse files
author
Pasi Pentikainen
committed
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 <[email protected]> Reviewed-by: Murray Read <[email protected]> Reviewed-by: Pasi Pentikäinen <[email protected]> (cherry picked from commit 51f6e63)
1 parent 77f5182 commit f52aa9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian/BlockAllocatorSymbian.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ AlignedBlockAllocator::AlignedBlockAllocator(TUint32 reservationSize, TUint32 bl
4444
m_blockSize(blockSize)
4545
{
4646
TInt err = m_lock.CreateLocal();
47-
__ASSERT_ALWAYS(m_map.bits, User::Panic(_L("AlignedBlkAlloc0"), err));
47+
__ASSERT_ALWAYS(err == KErrNone, User::Panic(_L("AlignedBlkAlloc0"), err));
4848

4949
// Get system's page size value.
5050
SYMBIAN_PAGESIZE(m_pageSize);

0 commit comments

Comments
 (0)