gecko-dev/tools
Nicholas Nethercote 94ec493862 Bug 1557907 - Fix `jemalloc_replace_dynamic()`. r=glandium
`jemalloc_replace_dynamic()` is badly broken. If you install a malloc table
other than the default at startup (e.g. DMD's or PHC's), when you call
`jemalloc_replace_dynamic()` it installs a new allocator that wraps the
*default* allocator, and then when you call `jemalloc_replace_dynamic(nullptr)`
it switches back to the *default* allocator.

This commits makes numerous improvements.

- It removes the "flip-flopping" between malloc tables, which didn't really
  work and isn't necessary.

- `jemalloc_replace_dynamic()` now switches between the *original* malloc table
  and the new one, rather than the *default* malloc table and the new one.

- It renames various things, to make the names shorter and clearer.

- It clearly documents the dangers and limitations of
  `jemalloc_replace_dynamic()`.

- It removes and inlines `profiler::Init()`, because there was only one call
  site.

- It rearranges `install_memory_counter()` so the control flow is simpler.

Differential Revision: https://phabricator.services.mozilla.com/D34266

--HG--
extra : moz-landing-system : lando
2019-06-13 20:42:19 +00:00
..
bloatview
browsertime Bug 1558271 - Update mozilla/browsertime snapshot to b8c1becaee74970a6f6e4222a64d1e2e18f20cd6 r=nalexander 2019-06-10 21:03:22 +00:00
clang-tidy Bug 1558987 - For clang based static-analysis, disable readability-isolate-declaration. r=sylvestre 2019-06-13 12:32:57 +00:00
code-coverage
compare-locales
coverity
crashreporter
docs Bug 1556460 - [docs] Use compatible-release operator instead of * in tools/docs/Pipenv, r=davehunt 2019-06-06 08:13:47 +00:00
fuzzing Bug 1553272 - Eliminate the unnecessary ProtocolState object, r=froydnj 2019-06-06 14:57:34 +00:00
infer
jprof
leak-gauge
lint Bug 1543598 - Move OneCRL and Pinning blocklist clients out of services r=jcj,glasserc 2019-06-11 10:14:40 +00:00
power
profiler Bug 1557907 - Fix `jemalloc_replace_dynamic()`. r=glandium 2019-06-13 20:42:19 +00:00
quitter Bug 1548515 - Make quitter wait until we've run idle tasks, r=kmag 2019-05-24 12:58:43 +01:00
rb
rewriting Bug 1473295 - add enviroment for unit tests, r=jdescottes,ladybenko 2019-06-06 13:49:49 +00:00
tryselect Bug 1555458 - require --full for android-hw job scheduling with fuzzy r=jmaher,gbrown 2019-06-05 20:26:36 +00:00
update-packaging
update-verify
mach_commands.py
moz.build