From c98cb888eb6bd6f3014fafa5f50adcd8a87c70bb Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 13 Aug 2020 18:17:02 -0700 Subject: [PATCH] Fix a TODO. The allocator now supports M_HEAP_TAGGING_LEVEL_SYNC so we can start using it here. Bug: 135772972 Change-Id: I19b79e652ea9575fd49e5ff3bd02a80c4ec34ee4 --- core/jni/com_android_internal_os_Zygote.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index b3c76f860cd2f..8f14f7311acff 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -1248,8 +1248,7 @@ static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, #ifdef ANDROID_EXPERIMENTAL_MTE SetTagCheckingLevel(PR_MTE_TCF_SYNC); #endif - // TODO(pcc): Use SYNC here once the allocator supports it. - heap_tagging_level = M_HEAP_TAGGING_LEVEL_ASYNC; + heap_tagging_level = M_HEAP_TAGGING_LEVEL_SYNC; break; default: #ifdef ANDROID_EXPERIMENTAL_MTE