#ifndef SANITIZER_ALLOCATOR_H
#define SANITIZER_ALLOCATOR_H
#include "sanitizer_common.h"
#include "sanitizer_flat_map.h"
#include "sanitizer_internal_defs.h"
#include "sanitizer_lfstack.h"
#include "sanitizer_libc.h"
#include "sanitizer_list.h"
#include "sanitizer_local_address_space_view.h"
#include "sanitizer_mutex.h"
#include "sanitizer_procmaps.h"
#include "sanitizer_type_traits.h"
namespace __sanitizer {
extern const char *PrimaryAllocatorName;
extern const char *SecondaryAllocatorName;
bool AllocatorMayReturnNull();
void SetAllocatorMayReturnNull(bool may_return_null);
bool IsAllocatorOutOfMemory();
void SetAllocatorOutOfMemory();
void PrintHintAllocatorCannotReturnNull();
ForEachChunkCallback;
inline u32 Rand(u32 *state) { … }
inline u32 RandN(u32 *state, u32 n) { … }
template<typename T>
inline void RandomShuffle(T *a, u32 n, u32 *rand_state) { … }
struct NoOpMapUnmapCallback { … };
#include "sanitizer_allocator_size_class_map.h"
#include "sanitizer_allocator_stats.h"
#include "sanitizer_allocator_primary64.h"
#include "sanitizer_allocator_primary32.h"
#include "sanitizer_allocator_local_cache.h"
#include "sanitizer_allocator_secondary.h"
#include "sanitizer_allocator_combined.h"
bool IsRssLimitExceeded();
void SetRssLimitExceeded(bool limit_exceeded);
}
#endif