mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
4bbdd05fd0
Based on mstange's comment in https://phabricator.services.mozilla.com/D209919: > I agree that it's a bad idea to call PollJSSampling() while the profiler > lock is being held. I think we should move all calls to PollJSSampling() out > of any locked_profiler_* functions. I removed the calls to PollJSSampling() for the current thread from the places this happened while the lock was held and moved them after the locked region (replacing them with PollJSSamplingForCurrentThread()). Mostly this was straightforward except for profiler_clear_js_context() since PollJSSampling() needs to happen before ClearJSContext() clears mJSContext. I confirmed that this fixes the deadlock. Differential Revision: https://phabricator.services.mozilla.com/D210630 |
||
---|---|---|
.. | ||
core | ||
docs | ||
gecko | ||
lul | ||
public | ||
rust-api | ||
rust-helper | ||
tests | ||
moz.build |