From 5722e83555f2f6e90c3b67697b1b6265cc33ce81 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 3 Oct 2019 20:34:23 +0100 Subject: [PATCH] Add /memfd:jit-zygote-cache to HEAP_DALVIK_OTHER_ZYGOTE_CODE_CACHE. Forgot this in the previous commit. Bug: 119800099 Test: dumpsys meminfo on blueline Change-Id: I268ff0b68cfa9386c2805da13cf7c0db4bf28fd1 --- core/jni/android_os_Debug.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp index 20fb0b036feaf..ecddda90809b1 100644 --- a/core/jni/android_os_Debug.cpp +++ b/core/jni/android_os_Debug.cpp @@ -321,6 +321,9 @@ static void load_maps(int pid, stats_t* stats, bool* foundSwapPss) } else if (base::StartsWith(name, "/memfd:jit-cache")) { which_heap = HEAP_DALVIK_OTHER; sub_heap = HEAP_DALVIK_OTHER_APP_CODE_CACHE; + } else if (base::StartsWith(name, "/memfd:jit-zygote-cache")) { + which_heap = HEAP_DALVIK_OTHER; + sub_heap = HEAP_DALVIK_OTHER_ZYGOTE_CODE_CACHE; } else if (base::StartsWith(name, "[anon:")) { which_heap = HEAP_UNKNOWN; if (base::StartsWith(name, "[anon:dalvik-")) {