[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:
@@ -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:")) {
|
||||
|
||||
Reference in New Issue
Block a user