Skip to content
Commit 39380dcf authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Remove WM lock from WPC#computeOomAdjFromActivities

Since the result of computeOomAdjFromActivities depends on task
layer rank and activity state. It can be calculated once the states
are changed before oom-adjustment calculation. So when activity
manager asks the result from any reason, it can get the computed
states without entering heavy WM lock.

Also remove lock in WPC#hasVisibleActivities because its returned
result is also computed in computeOomAdjFromActivities.

Bug: 159104503
Test: WindowProcessControllerTests#testComputeOomAdjFromActivities
Change-Id: I797c81a5ebe447802cc02ac37736a0464108836f
parent 697f2d91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment