diff options
| author | Edward Wang <ewang@cyngn.com> | 2015-10-08 15:24:56 -0700 |
|---|---|---|
| committer | Jessica Wagantall <jwagantall@cyngn.com> | 2015-10-14 10:26:05 -0700 |
| commit | 76cc133ff943b9cc8af24ee614a28831e435700d (patch) | |
| tree | 216dd7efcf4f1b55203cc09028a008f046703d81 | |
| parent | 12eb9c556ad50585bf0067974c4db41ce2fe0784 (diff) | |
| download | android_bionic-stable/cm-12.1-YOG7D.tar.gz android_bionic-stable/cm-12.1-YOG7D.tar.bz2 android_bionic-stable/cm-12.1-YOG7D.zip | |
bionic: add electric fence into memory debug list, use code 15.stable/cm-12.1-YOG7D
To enable efence feature, just do "setprop libc.debug.malloc 15"
Issue-Id: RM-170
Change-Id: I1ae6ae05a60a6813426f5cf35be08238613b0965
| -rw-r--r-- | libc/bionic/malloc_debug_common.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/bionic/malloc_debug_common.cpp b/libc/bionic/malloc_debug_common.cpp index e0d439acf..fbf62f639 100644 --- a/libc/bionic/malloc_debug_common.cpp +++ b/libc/bionic/malloc_debug_common.cpp @@ -387,6 +387,9 @@ static void malloc_init_impl() { case 10: so_name = "libc_malloc_debug_leak.so"; break; + case 15: + so_name = "libefence.so"; + break; case 20: // Quick check: debug level 20 can only be handled in emulator. if (!qemu_running) { @@ -473,6 +476,9 @@ static void malloc_init_impl() { case 10: InitMalloc(malloc_impl_handle, &malloc_dispatch_table, "chk"); break; + case 15: + InitMalloc(malloc_impl_handle, &malloc_dispatch_table, "efence"); + break; case 20: InitMalloc(malloc_impl_handle, &malloc_dispatch_table, "qemu_instrumented"); break; |
