Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 785a8e90 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Add support for scudo native allocator.

Bug: 137795072

Test: dumpsys meminfo <PID> and verified non-zero return for Native Heap
Test: using jemalloc and using scudo.
Change-Id: I418c89eaf2eb21d64f008435fa588d22523ffdbd
parent ef530d9f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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:")) {