Array index is changing here.

This commit is contained in:
Bartosz Taudul 2019-01-31 18:37:59 +01:00
parent 52a7f3a39a
commit e801943b90

View File

@ -3125,8 +3125,7 @@ void Worker::ReconstructMemAllocPlot()
if( aptr != aend && fptr != fend )
{
auto atime = aptr->timeAlloc;
const auto& memData = mem.data[*fptr];
auto ftime = memData.timeFree;
auto ftime = mem.data[*fptr].timeFree;
for(;;)
{
@ -3144,7 +3143,7 @@ void Worker::ReconstructMemAllocPlot()
}
else
{
usage -= int64_t( memData.size );
usage -= int64_t( mem.data[*fptr].size );
assert( usage >= 0 );
if( max < usage ) max = usage;
ptr->time = ftime;
@ -3152,7 +3151,7 @@ void Worker::ReconstructMemAllocPlot()
ptr++;
fptr++;
if( fptr == fend ) break;
ftime = memData.timeFree;
ftime = mem.data[*fptr].timeFree;
}
}
}