Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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 <julien@danjou.info>
- Loading branch information