зеркало из https://github.com/mozilla/gecko-dev.git
352554c8f6
The profiler can currently handle nested calls to profiler_{init,shutdown}() -- only the first call to profiler_init() and the last call to profiler_shutdown() do anything. And sure enough, we have the following. - Outer init/shutdown pairs in XRE_main()/XRE_InitChildProcess() (via GeckoProfilerInitRAII). - Inner init/shutdown pairs in NS_InitXPCOM2()/NS_InitMinimalXPCOM() (both shut down in ShutdownXPCOM()). This is a bit silly, so the patch removes the inner pairs, and adds a now-needed pair in XRE_XPCShellMain. This will allow gInitCount -- which tracks the nesting depth -- to be removed in a future patch. --HG-- extra : rebase_source : 7e8dc6ce81ce10269d2db6a7bf32852c396dba0e |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
src | ||
xpconnect | ||
ffi.configure | ||
moz.configure |