+22
−27
Loading
Bug 1728056 - Remove lock when profiling current thread in profiler_suspend_and_sample_thread - r=canaltinova The lock in the inner `profiler_suspend_and_sample_thread` function was only needed on the `!aIsSynchronous` code path. So instead, the pointer to the lock is passed in this case, otherwise `nullptr` indicates a synchronous (same-thread) sampling. Differential Revision: https://phabricator.services.mozilla.com/D123915