mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

For processes besides the main process, the leak log is derived from the value of XPCOM_MEM_BLOAT_LOG, but for the main process, it is simply whatever XPCOM_MEM_BLOAT_LOG is. This patch adds code to handle the latter case. It would be nice to share this code with nsTraceRefcnt.cpp, but NoteIntentionalCrash() is used in the test plugins so I don't think it can actually call into libxul. The logic isn't all that complex. Differential Revision: https://phabricator.services.mozilla.com/D54374 --HG-- extra : moz-landing-system : lando