Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5809095d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Move debuggerd_test over to mallopt()."

parents 6e6df01f 03b283a6
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@


#include <err.h>
#include <err.h>
#include <fcntl.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdlib.h>
#include <sys/capability.h>
#include <sys/capability.h>
#include <sys/mman.h>
#include <sys/mman.h>
@@ -32,7 +33,6 @@


#include <android/fdsan.h>
#include <android/fdsan.h>
#include <android/set_abort_message.h>
#include <android/set_abort_message.h>
#include <bionic/malloc.h>
#include <bionic/mte.h>
#include <bionic/mte.h>
#include <bionic/reserved_signals.h>
#include <bionic/reserved_signals.h>


@@ -385,8 +385,7 @@ TEST_F(CrasherTest, heap_addr_in_register) {


#if defined(__aarch64__)
#if defined(__aarch64__)
static void SetTagCheckingLevelSync() {
static void SetTagCheckingLevelSync() {
  HeapTaggingLevel heap_tagging_level = M_HEAP_TAGGING_LEVEL_SYNC;
  if (mallopt(M_BIONIC_SET_HEAP_TAGGING_LEVEL, M_HEAP_TAGGING_LEVEL_SYNC) == 0) {
  if (!android_mallopt(M_SET_HEAP_TAGGING_LEVEL, &heap_tagging_level, sizeof(heap_tagging_level))) {
    abort();
    abort();
  }
  }
}
}