gecko-dev/tools/profiler
Gerald Squelart b0647eab4e Bug 1657174 - Added more targeted assertions around multiple thread de-registrations - r=mstange
`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
2020-08-06 00:55:20 +00:00
..
core Bug 1657174 - Added more targeted assertions around multiple thread de-registrations - r=mstange 2020-08-06 00:55:20 +00:00
gecko Bug 1651102 - Safely delay handling of child profile buffer updates - r=canaltinova 2020-07-17 11:21:38 +00:00
lul
public Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-02 15:29:15 +00:00
rust-helper
tasktracer
tests Bug 1640969 - Fix gtests for tracing markers, and add PHASE tests; r=canaltinova 2020-07-30 22:21:40 +00:00
moz.build