summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-01-15 11:34:26 -0800
committerElliott Hughes <enh@google.com>2021-01-15 11:34:26 -0800
commit03b283a65fe4bb9f93a059e2cce48b8dec74fe61 (patch)
tree4b77beaf4226d0b8c98152d224d51b6377cbff88 /debuggerd/debuggerd_test.cpp
parent76d44b077e69d3011c29f1384362f9be102784f6 (diff)
Move debuggerd_test over to mallopt().
Bug: http://b/135772972 Test: treehugger Change-Id: I178f2a753b5608d9e72cee8874524ad4faf701d7
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
-rw-r--r--debuggerd/debuggerd_test.cpp5
1 files changed, 2 insertions, 3 deletions
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 <err.h>
#include <fcntl.h>
+#include <malloc.h>
#include <stdlib.h>
#include <sys/capability.h>
#include <sys/mman.h>
@@ -32,7 +33,6 @@
#include <android/fdsan.h>
#include <android/set_abort_message.h>
-#include <bionic/malloc.h>
#include <bionic/mte.h>
#include <bionic/reserved_signals.h>
@@ -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();
}
}