5 #ifndef STORAGE_LEVELDB_UTIL_ARENA_H_ 6 #define STORAGE_LEVELDB_UTIL_ARENA_H_ 12 #include "port/port.h" 30 return reinterpret_cast<uintptr_t
>(
memory_usage_.NoBarrier_Load());
68 #endif // STORAGE_LEVELDB_UTIL_ARENA_H_
char * Allocate(size_t bytes)
char * AllocateAligned(size_t bytes)
void operator=(const Arena &)
size_t MemoryUsage() const
char * AllocateNewBlock(size_t block_bytes)
port::AtomicPointer memory_usage_
std::vector< char * > blocks_
char * AllocateFallback(size_t bytes)
size_t alloc_bytes_remaining_