Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Nov 18, 2021

Doing a GC during application startup can be seen on lower end devices due to low memory warnings. These GCs tend to not recover much memory (because we're busy working towards the first frame).

This is a more aggressive attempt compared with the last patch that changed this (#28891). However, even with that patch internal traces show applications on lower end devices doing inappropriate GCs.

The GC can still run before rendering a frame based on the allocation policy and/or the old gen heap size limit, which is defaulted to half of physical memory. So it is not as if the GC will just accumulate in an unbounded fashion here.

/cc @a-siva @rmacnak-google
/cc @akbiggs @arbreng in case this might help Fuchsia

@dnfield dnfield added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants