diff options
author | Elliott Hughes <enh@google.com> | 2014-05-16 16:29:55 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-05-16 16:29:55 -0700 |
commit | 7c9923d05f03a78f70ee886878ac1dda9e84aa1d (patch) | |
tree | 9b1338b8eee07a61126b5cb8c2e990858c7b24bd /libc/bionic | |
parent | a23ee2cf8e8665efe4e0929467782fad7ad31661 (diff) | |
download | bionic-7c9923d05f03a78f70ee886878ac1dda9e84aa1d.zip bionic-7c9923d05f03a78f70ee886878ac1dda9e84aa1d.tar.gz bionic-7c9923d05f03a78f70ee886878ac1dda9e84aa1d.tar.bz2 |
Export get_malloc_leak_info and free_malloc_leak_info, used by ddms.
Bug: 11156955
Change-Id: I84043f7b2c0ea0e336f6e2af3b7adb2f8488bd53
Diffstat (limited to 'libc/bionic')
-rw-r--r-- | libc/bionic/malloc_debug_common.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/bionic/malloc_debug_common.cpp b/libc/bionic/malloc_debug_common.cpp index 1c9f51a..8ae0bb5 100644 --- a/libc/bionic/malloc_debug_common.cpp +++ b/libc/bionic/malloc_debug_common.cpp @@ -113,7 +113,9 @@ static int hash_entry_compare(const void* arg1, const void* arg2) { * not include heap overhead * "*backtraceSize" is set to the maximum number of entries in the back trace */ -extern "C" __LIBC_HIDDEN__ void get_malloc_leak_info(uint8_t** info, size_t* overallSize, + +// Exported for use by ddms. +extern "C" void get_malloc_leak_info(uint8_t** info, size_t* overallSize, size_t* infoSize, size_t* totalMemory, size_t* backtraceSize) { // don't do anything if we have invalid arguments if (info == NULL || overallSize == NULL || infoSize == NULL || @@ -182,7 +184,8 @@ extern "C" __LIBC_HIDDEN__ void get_malloc_leak_info(uint8_t** info, size_t* ove dlfree(list); } -extern "C" __LIBC_HIDDEN__ void free_malloc_leak_info(uint8_t* info) { +// Exported for use by ddms. +extern "C" void free_malloc_leak_info(uint8_t* info) { dlfree(info); } |