Android's libc includes advertise a "malloc_usable_size", but the

libc.so contains no such symbol; rather a "dlmalloc_usable_size"
(great, huh :-) So intercept that too, on Android.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12498
This commit is contained in:
Julian Seward 2012-04-11 08:46:53 +00:00
parent cfd1bdd20b
commit 5fd4b24eef

View File

@ -863,6 +863,9 @@ static void init(void);
#if defined(VGO_linux)
MALLOC_USABLE_SIZE(VG_Z_LIBC_SONAME, malloc_usable_size);
MALLOC_USABLE_SIZE(VG_Z_LIBC_SONAME, malloc_size);
# if defined(VGPV_arm_linux_android)
MALLOC_USABLE_SIZE(VG_Z_LIBC_SONAME, dlmalloc_usable_size);
# endif
#elif defined(VGO_darwin)
//MALLOC_USABLE_SIZE(VG_Z_LIBC_SONAME, malloc_usable_size);