Andrew McCreight 0072ea55ba Bug 1598173 - Make NoteIntentionalCrash() work in the main process. r=froydnj
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
2019-11-25 21:42:04 +00:00
..