summaryrefslogtreecommitdiff
path: root/libs/rs/rsObjectBase.cpp
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2009-08-27 00:44:33 -0700
committer Dianne Hackborn <hackbod@google.com> 2009-08-27 01:03:24 -0700
commitfd12af4e768fec852c4c5dfee3b9bd7403b4b347 (patch)
tree0a321d615f85ab4c49ac62a6a8eefe80a2690042 /libs/rs/rsObjectBase.cpp
parentb0f5b755e7f34ac00a390911d27c12f7e9e84154 (diff)
Various tweaks to try to improve low memory behavior.
- Reduce the amount that we ask processes to GC after a significant operation occurs, but introducing a minimum time between GCs and using this in various ways to schedule them. - Don't spam all of the processes with onLowMemory(). Now deliver these using the same gc facility, so we do the processes one at a time, and don't allow the same process to get this call more than once a minute. - Increase the time a service must run before we will reset its restart delay to 30 minutes (from 10). - Increase the restart delay multiplication factor from 2 to 4. - Ensure that we don't restart more than one service every 10 seconds (unless some external event causes a service's process to be started for some other reason of course). - Increase the amount of time that a service must run before we decide to lower it to a background process. And some other things: - Catch IllegalArgumentException in ViewRoot like we do for no resources to avoid the system process crashing. - Fix a number of places where we were missing breaks between the activity manager's message dispatch func(!!). - Fix reason printed for processes in the background. - Print the list of processing waiting to GC.
Diffstat (limited to 'libs/rs/rsObjectBase.cpp')
0 files changed, 0 insertions, 0 deletions