16 #ifndef ABSL_BASE_INTERNAL_LOW_LEVEL_ALLOC_H_ 17 #define ABSL_BASE_INTERNAL_LOW_LEVEL_ALLOC_H_ 27 #include <sys/types.h> 37 #ifdef ABSL_LOW_LEVEL_ALLOC_MISSING 38 #error ABSL_LOW_LEVEL_ALLOC_MISSING cannot be directly set 39 #elif !defined(ABSL_HAVE_MMAP) && !defined(_WIN32) 40 #define ABSL_LOW_LEVEL_ALLOC_MISSING 1 47 #ifdef ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING 48 #error ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING cannot be directly set 49 #elif defined(_WIN32) || defined(__asmjs__) || defined(__wasm__) 50 #define ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING 1 58 namespace base_internal {
95 #ifndef ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING 124 #endif // ABSL_BASE_INTERNAL_LOW_LEVEL_ALLOC_H_ static Arena * DefaultArena()
static void * Alloc(size_t request) ABSL_ATTRIBUTE_SECTION(malloc_hook)
LowLevelAlloc::Arena * arena
static void Free(void *s) ABSL_ATTRIBUTE_SECTION(malloc_hook)
static void * AllocWithArena(size_t request, Arena *arena) ABSL_ATTRIBUTE_SECTION(malloc_hook)
static Arena * NewArena(int32_t flags)
static bool DeleteArena(Arena *arena)
#define ABSL_ATTRIBUTE_SECTION(name)