diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-09-12 11:39:16 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-10-07 23:41:51 +0800 |
commit | 8f7dd59911eef213c0d1b5db460f6e8114aeeea0 (patch) | |
tree | 2652938b3f8db0549b747e33b50f17d4671e6b0d /rs/java/android/renderscript/ProgramStore.java | |
parent | 89387761080f4e01fe6588bfb2db1251437d6bf8 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions