From 785a8e906436c13dcc687598e36b625cfc6529dc Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Wed, 18 Sep 2019 10:42:23 -0700 Subject: [PATCH] Add support for scudo native allocator. Bug: 137795072 Test: dumpsys meminfo and verified non-zero return for Native Heap Test: using jemalloc and using scudo. Change-Id: I418c89eaf2eb21d64f008435fa588d22523ffdbd --- core/jni/android_os_Debug.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp index f6385cbbcef7..7c6a25beaa90 100644 --- a/core/jni/android_os_Debug.cpp +++ b/core/jni/android_os_Debug.cpp @@ -257,6 +257,8 @@ static void load_maps(int pid, stats_t* stats, bool* foundSwapPss) which_heap = HEAP_NATIVE; } else if (base::StartsWith(name, "[anon:libc_malloc]")) { which_heap = HEAP_NATIVE; + } else if (base::StartsWith(name, "[anon:scudo:")) { + which_heap = HEAP_NATIVE; } else if (base::StartsWith(name, "[stack")) { which_heap = HEAP_STACK; } else if (base::StartsWith(name, "[anon:stack_and_tls:")) { -- 2.11.0