Hi Nicholas, On 10/01/2014 09:22, Nicholas Nethercote wrote: > Do we send a memory-pressure event to apps when they are backgrounded?
Yes, we do. > And I also found this: > > > http://mxr.mozilla.org/mozilla-central/source/dom/ipc/ProcessPriorityManager.cpp#1019 > > but I don't understand how that code fits into the greater context of things. This is the code that handles all process priorities under B2G. That method is invoked when changing the priority of an existing process and as you observed it forces processes sent into the background to minimize their memory usage. The 'cancelling' part is used to prevent excessive delays whenever we send a process in the background and then quickly back into the foreground (such as when manually switching apps very fast). In that case we stop the memory minimization procedure ASAP to prevent visible glitches for the user. Gabriele
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
