History log of /bionic/libc/bionic/malloc_debug_common.c
Revision Date Author Comments
0f5587097bf2b27e13434b23f61a562816fe7649 22-Mar-2011 Christopher Schwardt <nookieman@gmx.de> removing shadowing redeclaration of result

Change-Id: Ic1f86962dfb8620cf5c63ff4913b2f0bf908abb5
9d8be5485c366b4f579bef0b88a4c99b899f21e1 05-Oct-2010 tedbo <tedbo@google.com> get_malloc_leak_info: Fix assumption that totalMemory out parameter was initialized to zero.

The get_malloc_leak_info() currently asssumes that the totalMemory out parameter
was pre-initialized to zero before the routine is called. If it is not then the
accumulated totalMemory value will be incorrect. It is likely that many callers
will simply allocate totalMemory on the stack with no initialization and assume
that get_malloc_leak_info will set the proper value.

As an example, the caller in frameworks/base/core/jni/android_os_Debug.cpp
calls get_malloc_leak_info() with the address uninitiazed stack variable
for totalMemory. It is probably best to fix this in get_malloc_leak_info.

Change-Id: I84c927c3781419585794726115b7d34d8fdd24ae
52e7d3d91ab6a5bab77c5dfb1ed47381fd52f9ba 09-Aug-2010 Christopher Tate <ctate@google.com> Bulletproof leak dump against null hash entries

Previously, the malloc leak checking code would crash in qsort()
if null entries existed in its bookkeeping table. This change
makes the comparison function detect null entries and sort them
to the end safely.

Change-Id: I88244a7df1e289dd9d7992ce29606d505bd63079
75fba6888a1e5738f8255f3511c4ad40cbcc0eda 12-Feb-2010 Vladimir Chtchetkine <vchtchetkine@google.com> Merge memory checking functionality from sandbox

Change-Id: I304c789a752c9f4af4944ca14b9bf1e7644da15a
b74ceb25aae555570df64fa4d4076272733a9a20 17-Nov-2009 Vladimir Chtchetkine <vchtchetkine@google.com> Split libc_debug.so into two .so modules loaded on demand from libc.so

This change is intended to eliminate need to replace libc.so with libc_debug.so in order to enablememory allocation debugging.
This is also the first step towards implementing extended memoryallocation debugging using emulator's capabilities in monitoring memory access.