Skip to content
Commit 8f7dd599 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Remove WM lock from simple conditions in oom-adj update

Though the conditions might get an intermediate state, the
original code with lock also has the similar symptom because
oom-adj calculation doesn't lock WM in entire update procedure.

And if there are important state changes, WM should schedule an
oom-adj update after the oom related field in WM are computed.
So it should eventually calculate the score steadily.

Bug: 159104503
Test: MockingOomAdjusterTests
      ActivityTaskManagerServiceTests
Change-Id: I75b715607203785f4fc6c0a2a18ed0a84d0a246a
parent 89387761
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