23 for (
unsigned i = 0; i < N; ++i) {
38 int retval = pthread_mutex_init(&
lock_, NULL);
51 pthread_mutex_destroy(&
lock_);
62 for (
unsigned i = 0; i < N; ++i) {
static MallocArena * GetMallocArena(void *ptr, unsigned arena_size)
void * Malloc(unsigned size)
assert((mem||(size==0))&&"Out Of Memory")
std::vector< MallocArena * > malloc_arenas_
void * Malloc(const uint32_t size)
static atomic_int64 total_allocated_
static const unsigned kArenaSize