Merge pull request #434 from haCo77/master

fix tracy worker threads conflict
This commit is contained in:
Bartosz Taudul 2022-07-27 21:37:12 +02:00 committed by GitHub
commit 1b728b50bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7162,6 +7162,7 @@ void Worker::ReconstructMemAllocPlot( MemData& mem )
{
std::lock_guard<std::mutex> lock( m_data.lock );
plot = m_slab.AllocInit<PlotData>();
plot->data.reserve_exact( psz, m_slab );
}
plot->name = mem.name;
@ -7170,7 +7171,6 @@ void Worker::ReconstructMemAllocPlot( MemData& mem )
plot->showSteps = true;
plot->fill = true;
plot->color = 0;
plot->data.reserve_exact( psz, m_slab );
auto aptr = mem.data.begin();
auto aend = mem.data.end();