Fix a TODO.

The allocator now supports M_HEAP_TAGGING_LEVEL_SYNC so
we can start using it here.

Bug: 135772972
Change-Id: I19b79e652ea9575fd49e5ff3bd02a80c4ec34ee4
This commit is contained in:
Peter Collingbourne
2020-08-13 18:17:02 -07:00
parent f98e615b6d
commit c98cb888eb

View File

@@ -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