]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Android's libc includes advertise a "malloc_usable_size", but the
authorJulian Seward <jseward@acm.org>
Wed, 11 Apr 2012 08:46:53 +0000 (08:46 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 11 Apr 2012 08:46:53 +0000 (08:46 +0000)
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

coregrind/m_replacemalloc/vg_replace_malloc.c

index 395391190934354aa41d87e595e37be3a4ce7907..af6c29b3c19dd178af186427ad737b4bf79a9ddb 100644 (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);