gecko-dev/xpcom
Gerald Squelart 29f190e9e6 Bug 1722261 - Use AUTO_PROFILER_REGISTER_THREAD where possible - r=canaltinova
With the new ThreadRegistration classes, it becomes more important to properly balance registrations with unregistrations. Though mismatches are safely handled when they happen, in particular missing unregistrations can lead to leaks that make tests fail.

This patch changes `PROFILER_REGISTER_THREAD` in TaskController.cpp to `AUTO_PROFILER_REGISTER_THREAD`, to ensure that TaskController threads get unregistered when they're finished.

In AsyncLogger.h, a pair of `PROFILER_REGISTER_THREAD` and `PROFILER_UNREGISTER_THREAD` is converted to a single `AUTO_PROFILER_REGISTER_THREAD`. This is equivalent, but the latter is safer, in case the code in-between later changes to include early breaks or returns.

Differential Revision: https://phabricator.services.mozilla.com/D123228
2021-08-24 04:47:12 +00:00
..
base Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug 2021-08-23 10:54:11 +00:00
build Bug 1519636 - Reformat recent changes to the Google coding style. r=emilio 2021-08-23 09:30:23 +00:00
components Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-08-09 16:20:45 +00:00
docs Bug 1702245 - Expand XPCOM's in-tree documentation, r=xpcom-reviewers,kmag 2021-04-05 15:56:18 +00:00
ds Bug 1715773 - Remove preloaded newtab process selection logic, r=mconley 2021-08-03 15:17:07 +00:00
glue Bug 1720374 - Remove MOZ_GECKO_PROFILER ifdefs that are not useful, r=gerald. 2021-07-15 22:04:23 +00:00
idl-parser Bug 1714376 - Replace a number of "exception.message" usages. r=mhentges,jgraham 2021-06-08 15:50:10 +00:00
io Bug 1722758 - Patch 3 - Change netCharType to be an unsigned char array instead of int to save space r=necko-reviewers,valentin 2021-08-20 18:54:03 +00:00
libxpt/xptcall
reflect Bug 1717205 - Add riscv64gc xptcall support. r=xpcom-reviewers,nika 2021-08-23 11:27:04 +00:00
rust Bug 1613705 - [localization] part11: Fix XPCOM future_task polling assert. r=nika 2021-08-03 16:25:14 +00:00
string Bug 1717526 - String's implicit conversion operator causes COW relocations, r=xpcom-reviewers,mccr8 2021-06-23 01:57:00 +00:00
system Bug 1714112: Add new Fission decision value for phased rollout enablement. r=nika,fluent-reviewers,flod 2021-06-22 17:28:34 +00:00
tests Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug 2021-08-23 10:54:11 +00:00
threads Bug 1722261 - Use AUTO_PROFILER_REGISTER_THREAD where possible - r=canaltinova 2021-08-24 04:47:12 +00:00
windbgdlg
xpidl
moz.build Bug 1695954: Move Gecko Logging MDN Page In-tree r=nika 2021-03-09 16:27:29 +00:00
xpcom-config.h.in