summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-03-28 13:16:01 -0700
committerJosh Gao <jmgao@google.com>2018-03-28 15:01:23 -0700
commit2de2ade387774effee209a1498f16babab81e4ee (patch)
tree765e6846a2edfa47083865254671b9461555054c /libutils/Unicode.cpp
parent541a8656c460a437693ba7d3105e8d8ae7a36968 (diff)
adbd: increase oom_score_adj for `adb shell`
Previously, processes started via `adb shell` have an oom_score_adj of -1000, making them invisible to the oom killer. This makes running a process that consumes all memory (e.g. by leaking in a loop) lead to the entire rest of the system (including adbd, because of bad heuristics in the kernel) being oom killed before getting to it. Bug: http://b/63143027 Test: `adb shell cat /proc/self/oom_score_adj` with adb root Change-Id: I59111134e36dc271adf4c1dd4bd4400d4fe6aee0
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions