diff options
author | Wei Wang <wvw@google.com> | 2019-04-18 14:56:24 -0700 |
---|---|---|
committer | Wei Wang <wvw@google.com> | 2019-04-18 16:14:08 -0700 |
commit | 45d8174fe7b6f35883f74ceefdf591b209f1fab2 (patch) | |
tree | df599c65a8fc7afef44ef70a77047dd337734c37 /libsparse/sparse.cpp | |
parent | d71d30179ca14991c22f65a0d23ddc6686735477 (diff) |
init: set oom_adj early before fork vendor_init
right now vendor_init is forked before we set oom_adj for init which
leaves a chance vendor_init could be killed in heavy memory pressure.
this CL set the oom_adj before forking everything to ensure all native
have correct oom_adj settings.
Fixes: 130824864
Test: procrank -o
Change-Id: I8af129076c3efa29f7b781459449f8f2dc853c98
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions