From 92624025eab667e096eb13993fa7ca7c5534e0ff Mon Sep 17 00:00:00 2001 From: Frank Meerkoetter Date: Tue, 11 Aug 2015 22:01:55 +0200 Subject: [PATCH] Do not sort the vector of chunks 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 --- src/qml/memory/qv4mm.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp index 24be663ed..03e78df91 100644 --- a/src/qml/memory/qv4mm.cpp +++ b/src/qml/memory/qv4mm.cpp @@ -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(allocation.base()); header->itemSize = int(size); -- 2.34.1