diff options
Diffstat (limited to 'libc/platform/bionic/malloc.h')
-rw-r--r-- | libc/platform/bionic/malloc.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/libc/platform/bionic/malloc.h b/libc/platform/bionic/malloc.h index 0ea7e3c12..b56ca746a 100644 --- a/libc/platform/bionic/malloc.h +++ b/libc/platform/bionic/malloc.h @@ -28,6 +28,7 @@ #pragma once +#include <malloc.h> #include <stdbool.h> #include <stdint.h> @@ -85,12 +86,6 @@ enum { // arg_size = sizeof(android_mallopt_leak_info_t) M_FREE_MALLOC_LEAK_INFO = 7, #define M_FREE_MALLOC_LEAK_INFO M_FREE_MALLOC_LEAK_INFO - // Change the heap tagging state. The program must be single threaded at the point when the - // android_mallopt function is called. - // arg = HeapTaggingLevel* - // arg_size = sizeof(HeapTaggingLevel) - M_SET_HEAP_TAGGING_LEVEL = 8, -#define M_SET_HEAP_TAGGING_LEVEL M_SET_HEAP_TAGGING_LEVEL // Query whether the current process is considered to be profileable by the // Android platform. Result is assigned to the arg pointer's destination. // arg = bool* @@ -107,17 +102,6 @@ enum { #define M_INITIALIZE_GWP_ASAN M_INITIALIZE_GWP_ASAN }; -enum HeapTaggingLevel { - // Disable heap tagging. The program must use prctl(PR_SET_TAGGED_ADDR_CTRL) to disable memory tag - // checks before disabling heap tagging. Heap tagging may not be re-enabled after being disabled. - M_HEAP_TAGGING_LEVEL_NONE = 0, - // Address-only tagging. Heap pointers have a non-zero tag in the most significant byte which is - // checked in free(). Memory accesses ignore the tag. - M_HEAP_TAGGING_LEVEL_TBI = 1, - // Enable heap tagging if supported, at a level appropriate for asynchronous memory tag checks. - M_HEAP_TAGGING_LEVEL_ASYNC = 2, -}; - // Manipulates bionic-specific handling of memory allocation APIs such as // malloc. Only for use by the Android platform itself. // |