Skip to content

Commit d3047f8

Browse files
committed
Fix memory discard + callstack.
Bug (High Severity): Wrong queue type in MemDiscardCallstack In the callstack path of MemDiscardCallstack, the wrong queue type is sent: SendMemDiscard( QueueType::MemDiscard, thread, name ); Every other callstack variant correctly uses its callstack queue type (MemAllocCallstack, MemFreeCallstack, etc.), but this one uses the non-callstack type. The SendMemDiscard assertion at line 1026 confirms MemDiscardCallstack is a valid value. Impact: The callstack captured by SendCallstackSerial() will be orphaned. The server processes the event via the non-callstack handler, leaving the callstack serial data unconsumed, which desynchronizes the serial queue and corrupts all subsequent events.
1 parent 3804b25 commit d3047f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/client/TracyProfiler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ class Profiler
719719

720720
GetProfiler().m_serialLock.lock();
721721
SendCallstackSerial( callstack );
722-
SendMemDiscard( QueueType::MemDiscard, thread, name );
722+
SendMemDiscard( QueueType::MemDiscardCallstack, thread, name );
723723
GetProfiler().m_serialLock.unlock();
724724
}
725725
else

0 commit comments

Comments
 (0)