commit | c405900f878fffeaf68309a2c3edb2b46d837fdd | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jul 11 17:15:44 2014 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Jul 14 16:39:56 2014 -0700 |
tree | d02a7338b21dc551500027b15d09306198747e92 | |
parent | fbde2c983073894d81320d793f4c32dbf7905f3d [diff] |
lmkd: mlock all memory Use mlockall(MCL_FUTURE) to lock all lmkd pages in memory. This avoids lmkd thrashing when the system is low on memory. As a side effect, it will also keep the .text sections of liblog, libm, libc, and libprocessgroup in memory at all times. Bug: 16236289 Change-Id: Idd70557efa4b1e14bc86f14220672a30f6c956e3