Merge "Move M_PURGE to M_PURGE_ALL." am: 345f54666a
am: 6206aca550
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2504135 Change-Id: Ia2c9ab188eea34aaff60a37f55bf54d8282d4cc3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1ab5a4ceb3
1 changed files with 2 additions and 2 deletions
|
@ -496,7 +496,7 @@ void debug_free_malloc_leak_info(uint8_t* info) {
|
|||
g_dispatch->free(info);
|
||||
// Purge the memory that was freed since a significant amount of
|
||||
// memory could have been allocated and freed.
|
||||
g_dispatch->mallopt(M_PURGE, 0);
|
||||
g_dispatch->mallopt(M_PURGE_ALL, 0);
|
||||
}
|
||||
|
||||
size_t debug_malloc_usable_size(void* pointer) {
|
||||
|
@ -1123,7 +1123,7 @@ static void write_dump(int fd) {
|
|||
|
||||
// Purge the memory that was allocated and freed during this operation
|
||||
// since it can be large enough to expand the RSS significantly.
|
||||
g_dispatch->mallopt(M_PURGE, 0);
|
||||
g_dispatch->mallopt(M_PURGE_ALL, 0);
|
||||
}
|
||||
|
||||
bool debug_write_malloc_leak_info(FILE* fp) {
|
||||
|
|
Loading…
Reference in a new issue