commit | 9333840e902a335ffa5e2fcfc08b56f2c2d993a7 | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Tue Jul 03 07:30:57 2018 -0700 |
committer | Wale Ogunwale <ogunwale@google.com> | Tue Jul 03 07:30:57 2018 -0700 |
tree | 17a0b755a1859643b870a852ac68505bf39997e6 | |
parent | 817c832eb4d1e1248d6b5a86eb2e5492efe6b89c [diff] |
Reduce object allocation in AMS.computeOomAdjLocked() Follow-up clean-up CL to ag/4246927 where we introduced structured way of communicating process state to WM. However, in that CL we were creating a few objects whenever AMS.computeOomAdjLocked() is called. This CL corrects that with a temp. object/class pattern. Test: existing tests pass. Bug: 80414790 Change-Id: I97241b3d71e10610cca562397d33c8fa77727efa