[GWP-ASan] Scan GWP-ASan regions for native allocations.

GWP-ASan is part of the native allocator, and may allocate some memory.
When GWP-ASan is enabled, JNI needs to look inside of
GWP-ASan regions as well for native allocations.

Bug: 135634846
Test: ???
Change-Id: Id4f15544a902a034687690214c9481ab963929fc
This commit is contained in:
Mitch Phillips
2020-02-11 17:23:21 -08:00
parent 5ff37df1ab
commit 6229df2bb9

View File

@@ -263,6 +263,8 @@ static void load_maps(int pid, stats_t* stats, bool* foundSwapPss)
which_heap = HEAP_NATIVE;
} else if (base::StartsWith(name, "[anon:scudo:")) {
which_heap = HEAP_NATIVE;
} else if (base::StartsWith(name, "[anon:GWP-ASan")) {
which_heap = HEAP_NATIVE;
} else if (base::StartsWith(name, "[stack")) {
which_heap = HEAP_STACK;
} else if (base::StartsWith(name, "[anon:stack_and_tls:")) {