Do not sort the vector of chunks
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>
Tue, 11 Aug 2015 20:01:55 +0000 (22:01 +0200)
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>
Tue, 11 Aug 2015 20:51:00 +0000 (20:51 +0000)
I don't see why the vector needs to be sorted by the base()
addresses of the contained PageAllocations.

Change-Id: I31946a50075c64d01c6de98964ea42ebfc936c68
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/memory/qv4mm.cpp

index 24be663ed7b29f6a302f62a129c5bcce8a695396..03e78df91a34e5a867b4774000a21cfcb16f9217 100644 (file)
@@ -275,7 +275,6 @@ Heap::Base *MemoryManager::allocData(std::size_t size)
                     Q_V4_PROFILE_ALLOC(m_d->engine, allocSize, Profiling::HeapPage),
                     OSAllocator::JSGCHeapPages);
         m_d->heapChunks.append(allocation);
-        std::sort(m_d->heapChunks.begin(), m_d->heapChunks.end());
 
         header = reinterpret_cast<Data::ChunkHeader *>(allocation.base());
         header->itemSize = int(size);