Properly set countMap to 0 when loading a trace.

The live capture code path already does the equivalent thing.
This commit is contained in:
Bartosz Taudul
2026-07-28 23:47:49 +02:00
parent e0862e8534
commit 6b2abcb47a
+1
View File
@@ -1788,6 +1788,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks, bool allow
if( !t->timeline.empty() )
{
uint8_t countMap[64*1024];
memset( countMap, 0, sizeof( countMap ) );
// Don't touch thread compression cache in a thread.
ProcessTimeline( countMap, t->timeline, m_data.localThreadCompress.DecompressMustRaw( t->id ) );
}