diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp index 7938a61a6..45e555f44 100644 --- a/debuggerd/debuggerd_test.cpp +++ b/debuggerd/debuggerd_test.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -32,7 +33,6 @@ #include #include -#include #include #include @@ -385,8 +385,7 @@ TEST_F(CrasherTest, heap_addr_in_register) { #if defined(__aarch64__) static void SetTagCheckingLevelSync() { - HeapTaggingLevel heap_tagging_level = M_HEAP_TAGGING_LEVEL_SYNC; - if (!android_mallopt(M_SET_HEAP_TAGGING_LEVEL, &heap_tagging_level, sizeof(heap_tagging_level))) { + if (mallopt(M_BIONIC_SET_HEAP_TAGGING_LEVEL, M_HEAP_TAGGING_LEVEL_SYNC) == 0) { abort(); } }