Stop processing allocations if already at time end.

This commit is contained in:
Bartosz Taudul 2018-04-03 19:40:06 +02:00
parent b78dc70b70
commit 1182a3fcb8

View File

@ -4047,7 +4047,7 @@ Vector<int8_t> View::GetMemoryPages() const
const auto zvMid = m_zvStart + ( m_zvEnd - m_zvStart ) / 2;
for( auto& alloc : mem.data )
{
if( m_memInfo.restrictTime && alloc.timeAlloc > zvMid ) continue;
if( m_memInfo.restrictTime && alloc.timeAlloc > zvMid ) break;
const auto a0 = alloc.ptr - memlow;
const auto a1 = a0 + alloc.size;