commit | 66eb785a99c20c326db081d8c03bdb74ca375ea8 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Wed May 29 14:09:53 2019 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Wed May 29 14:09:53 2019 -0700 |
tree | 70588da7e7cd88687ed9ea4937918841af1104e4 | |
parent | 030bd8471fbd3f5c576574428d7b4fc08853a087 [diff] |
Reduce calls to updateOomAdj() during unbind When unbinding a service, avoid repeatedly calling updateOomAdj() as doing it one time should be sufficient. Running the below CTS test repeatedly with and without the optimization resulted in CPU thread time changing from 1800ms to 1450ms. Test includes a mix of service bindings and activity launches, etc. Bug: 130684057 Test: atest CtsAppTestCases:ActivityManagerProcessStateTest Change-Id: Iadb3743ac1d8b506a22baded279f2b7db7c60aaf