You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(profiling): remove lock from _ThreadLink (#4147) (#4151)
The _ThreadLink data structure historically used a lock to make sure there was
no threads overlapping each other. For example, this could happen:
1. Main thread from the application starts a trace and `link_object` is being
called
2. Stack profiler would run and clear the thread list or get an spans from the
list
Removing the lock makes it possible that, while the stack profiler thread
clears the mapping, a user's thread links a thread to a span.
That's a trade-off we are willing to accept for performance and safeness
reason.
(cherry picked from commit 39bc44f)
Co-authored-by: Julien Danjou <[email protected]>
0 commit comments