Skip to content
Commit 66eb785a authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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
parent 030bd847
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment