commit | c2a05e50e380ba00f164f7da4a48c6be59b08b4c | [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:31:11 2019 -0700 |
tree | 425d2e548580723822a216eb0be032337bb8fb42 | |
parent | 9e113924aa661ef16822fda7069b396eeaa0f484 [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 (cherry picked from commit 45d8174fe7b6f35883f74ceefdf591b209f1fab2) Change-Id: I68c18f9db24d55239f7f0608592fcc702f04542e