platform_bionic/libc
Christopher Ferris 885f3b9cad Implement malloc_usable_size for debug impls.
- Implemented chk_memalign.
- Fixed a few bugs in leak_memalign.
- Implemented {leak,fill,check,qemu}_malloc_usable_size.
- Make malloc_usable_size update at run time.
- Add malloc_test.cpp as a small set of tests for the
  malloc debug routines.
- Fix the qemu routines since it's been broken since it moved to C++.
- Add support for the %u format to the out_vformat in libc_logging.cpp.
  This is used by the emulator code.

Tested using the bionic-unit-tests with setprop libc.debug.malloc
set to 1, 5, and 10.

I tested as much as possible on the emulator, but tracing doesn't appear
to be working properly.

Bug: 6143477

Merge change from internal master.

(cherry-picked from commit 3d594c2580)

Change-Id: I4ae00fffba82315a8c283f35893fd554460722fb
2013-06-07 14:55:32 -07:00
..
arch-arm Use bl instead of blx to support interworking properly. 2013-05-31 14:39:23 -07:00
arch-mips libc: add timerfd calls 2013-05-14 14:45:02 -07:00
arch-x86 libc x86: Remove strcat.S 2013-05-30 11:15:40 -07:00
bionic Implement malloc_usable_size for debug impls. 2013-06-07 14:55:32 -07:00
include update signal.h to be C90 compatable 2013-06-05 18:05:36 -07:00
kernel libc: add timerfd calls 2013-05-14 14:45:02 -07:00
netbsd Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
private Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
stdio Start moving to current FreeBSD stdio. 2013-04-11 13:55:01 -07:00
stdlib Switch to current FreeBSD qsort. 2013-04-11 18:08:34 -07:00
string libc: cleanup strchr 2013-05-02 13:58:03 -07:00
tools Don't avoid IPv6 when looking for new tzdata. 2013-04-24 10:50:45 -07:00
tzcode Improve diagnostics in the face of bad tzdata. 2013-04-25 14:02:59 -07:00
unistd Upgrade to current NetBSD popen/pclose. 2013-03-06 16:20:55 -08:00
upstream-dlmalloc Fix build warning of initialization but no use. 2012-09-06 09:59:13 -07:00
upstream-freebsd Pull upstream FreeBSD revision 249810. 2013-05-14 15:02:16 -07:00
upstream-netbsd Add more __restricts, clean up __format__ attributes. 2013-05-14 16:08:43 -07:00
wchar Switch to upstream-freebsd for the unmolested wchar code. 2013-03-01 18:35:56 -08:00
zoneinfo Upgrade to tzdata2013c. 2013-04-22 11:33:14 -07:00
Android.mk libc: cleanup strchr 2013-05-02 13:58:03 -07:00
CAVEATS
MODULE_LICENSE_BSD
NOTICE Pull upstream FreeBSD revision 249810. 2013-05-14 15:02:16 -07:00
SYSCALLS.TXT libc: add timerfd calls 2013-05-14 14:45:02 -07:00