forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1580091 - Use BaseProfilerMaybeMutex in BlocksRingBuffer - r=greg…
…tatum In some situations we will *need* to use a `BlocksRingBuffer` that absolutely does not use a mutex -- In particular in the critical section of `SamplerThread::Run()`, when a thread is suspended, because any action on any mutex (even a private one that no-one else interacts with) can result in a hang. As a bonus, `BlocksRingBuffer`s that are known not to be used in multi-thread situations (e.g., backtraces, extracted stacks for duplication, etc.) will waste less resources trying to lock/unlock their mutex. Differential Revision: https://phabricator.services.mozilla.com/D45305 --HG-- extra : moz-landing-system : lando
- Loading branch information
Showing
3 changed files
with
66 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters