diff options
author | Steven Moreland <smoreland@google.com> | 2020-10-05 21:55:26 +0000 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2020-10-09 00:33:30 +0000 |
commit | 0cdf132f84022b2a05082095733d530e31d72d61 (patch) | |
tree | 11c2c3ebfb67e914c37c6573d0b775f781b4f1ff /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 5d3aa86cd1fe2e8b1920003b14b9a0c91153b111 (diff) |
Expose per-process memory init.
In order to disable memory initialization for a process, the following
command can be used:
android_mallopt(M_DISABLE_MEMORY_MITIGATIONS, nullptr, 0);
Since this is needed in vendor processes, this is exposing this
functionality to llndk. For convenience (and adding standard logging),
a helper function is being added into libcutils in order to use this,
w/o having to get into so many details.
Bug: 166675194
Test: use function from libcutils
Change-Id: Ia816089a9f3469c50c70afaa7244abeac5a51dcd
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions