mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1356249 - Fix assertion in profiler_set_frame_number(). r=mstange.
This function can run off the main thread when 'layers.frame-counter' is enabled. --HG-- extra : rebase_source : f3db0fd01c636d5af97109761bb0b57b57c79293
This commit is contained in:
parent
6a3359a108
commit
4a55f047a5
@ -2675,7 +2675,8 @@ profiler_is_active()
|
||||
void
|
||||
profiler_set_frame_number(int aFrameNumber)
|
||||
{
|
||||
MOZ_RELEASE_ASSERT(NS_IsMainThread());
|
||||
// This function runs both on (via tests) and off the main thread.
|
||||
|
||||
MOZ_RELEASE_ASSERT(gPS);
|
||||
|
||||
PS::AutoLock lock(gPSMutex);
|
||||
|
Loading…
Reference in New Issue
Block a user