Skip to content

Commit 48c35f0

Browse files
pccGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Change the android_mallopt(M_SET_HEAP_TAGGING_LEVEL) API."
2 parents 3434e29 + 71ad495 commit 48c35f0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

debuggerd/debuggerd_test.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <android/set_abort_message.h>
3535
#include <bionic/malloc.h>
3636
#include <bionic/mte.h>
37-
#include <bionic/mte_kernel.h>
3837
#include <bionic/reserved_signals.h>
3938

4039
#include <android-base/cmsg.h>
@@ -386,16 +385,6 @@ TEST_F(CrasherTest, heap_addr_in_register) {
386385

387386
#if defined(__aarch64__) && defined(ANDROID_EXPERIMENTAL_MTE)
388387
static void SetTagCheckingLevelSync() {
389-
int tagged_addr_ctrl = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0);
390-
if (tagged_addr_ctrl < 0) {
391-
abort();
392-
}
393-
394-
tagged_addr_ctrl = (tagged_addr_ctrl & ~PR_MTE_TCF_MASK) | PR_MTE_TCF_SYNC;
395-
if (prctl(PR_SET_TAGGED_ADDR_CTRL, tagged_addr_ctrl, 0, 0, 0) != 0) {
396-
abort();
397-
}
398-
399388
HeapTaggingLevel heap_tagging_level = M_HEAP_TAGGING_LEVEL_SYNC;
400389
if (!android_mallopt(M_SET_HEAP_TAGGING_LEVEL, &heap_tagging_level, sizeof(heap_tagging_level))) {
401390
abort();

0 commit comments

Comments
 (0)