lmkd: Do not treat RSS=0 as a sign of a process being dead am: 5263aa7800 am: 8aec07bbe0 am: 28164d3cc6 am: 918648b001
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1690656 Change-Id: I94a95b724ce88a97f94ea9e83a95cdff8f085e1f
This commit is contained in:
commit
5ceb07c9c7
2
lmkd.cpp
2
lmkd.cpp
|
|
@ -1898,7 +1898,7 @@ static struct proc *proc_get_heaviest(int oomadj) {
|
||||||
while (curr != head) {
|
while (curr != head) {
|
||||||
int pid = ((struct proc *)curr)->pid;
|
int pid = ((struct proc *)curr)->pid;
|
||||||
int tasksize = proc_get_size(pid);
|
int tasksize = proc_get_size(pid);
|
||||||
if (tasksize <= 0) {
|
if (tasksize < 0) {
|
||||||
struct adjslot_list *next = curr->next;
|
struct adjslot_list *next = curr->next;
|
||||||
pid_remove(pid);
|
pid_remove(pid);
|
||||||
curr = next;
|
curr = next;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue