Hi, On Thu, Apr 13, 2017 at 6:09 AM, Fischer Liu <f...@mozilla.com> wrote:
> We are using dom.ipc.processCount to limit the count of process. > After updating dom.ipc.processCount, do we still need to restart Firefox? > > It depends. It will prevent any new processes to be launched that would go beyond the new limit right away, but it will not shut down any existing processes if the current number is above the limit. For that you must either close tabs or restart the browser. > As I know in PreallocatedProcessManagerImpl::AllocateNow[2] and > PreallocatedProcessManagerImpl::RereadPrefs, there would read the pref to > check the max count to allow creation or close process. > > [1] > https://dxr.mozilla.org/mozilla-central/rev/f40e24f40b4c4556944c762d4764ea > ce261297f5/dom/ipc/PreallocatedProcessManager.cpp#143 > [2] > https://dxr.mozilla.org/mozilla-central/rev/f40e24f40b4c4556944c762d4764ea > ce261297f5/dom/ipc/PreallocatedProcessManager.cpp#200 > > The preallocated process manager is not enabled yet on any channels by default, I'm still struggling with some failing tests and other issues with it. Hopefully that'll be fixed soon (Bug 1341008 <https://bugzilla.mozilla.org/show_bug.cgi?id=1341008>), I wish I had more time for it... Once it's turned on, it will detect the change of the pref and shut down the preallocated process if necessary just like you described. Gabor _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform