зеркало из https://github.com/mozilla/gecko-dev.git
b0647eab4e
`MOZ_RELEASE_ASSERT(registeredThread == TLSRegisteredThread::RegisteredThread(lock));` is failing on Android, probably as a follow-up to bug 1651086, which allowed multiple registrations (to fix a problem with yet-unknown root cause). This assertion is too broad to help find the issue because at this point: - If `FindCurrentThreadRegisteredThread()` is not null, `TLSRegisteredThread::RegisteredThread()` should also not be null, and it should equal `FindCurrentThreadRegisteredThread()`, from the first succesful `profiler_register_thread()`. - If `FindCurrentThreadRegisteredThread()` is null, `TLSRegisteredThread::RegisteredThread()` should be null as well, from the first `profiler_unregister_thread()`. So this patch splits this assertion into multiple more targeted ones to check the above, and also some extra assertions after de-registration, to ensure that both `FindCurrentThreadRegisteredThread()` and `TLSRegisteredThread::RegisteredThread()` are null. Differential Revision: https://phabricator.services.mozilla.com/D86118 |
||
---|---|---|
.. | ||
core | ||
gecko | ||
lul | ||
public | ||
rust-helper | ||
tasktracer | ||
tests | ||
moz.build |