commit | ae3d6f0392f4d8d69dcfa4d15bfd9fdd8f631bc8 | [log] [tgz] |
---|---|---|
author | Wei Wang <wvw@google.com> | Thu Apr 18 14:56:24 2019 -0700 |
committer | Wei Wang <wvw@google.com> | Thu Apr 18 16:14:08 2019 -0700 |
tree | df599c65a8fc7afef44ef70a77047dd337734c37 | |
parent | e6ab4237e1eaba3006253fb269f173e8998d9154 [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