summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/jni/android_os_Debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp
index 2692ad82c70b..e8acd9780087 100644
--- a/core/jni/android_os_Debug.cpp
+++ b/core/jni/android_os_Debug.cpp
@@ -580,8 +580,8 @@ static long get_allocated_vmalloc_memory() {
break;
}
- if (!strstr(line, "ioremap")) {
- // Ignore ioremap regions, since they don't actually consume memory
+ if (!strstr(line, "ioremap") && !strstr(line, "map_lowmem")) {
+ // Ignore ioremap and map_lowmem regions, since they don't actually consume memory
if (sscanf(line, "%*x-%*x %ld", &size) == 1) {
vmalloc_allocated_size += size;
}