Searched refs:BaseArena (Results 1 – 3 of 3) sorted by relevance
/external/libtextclassifier/native/utils/base/ |
D | arena.h | 70 class BaseArena { 72 BaseArena(char* first_block, const size_t block_size, bool align_to_page); 75 virtual ~BaseArena(); 86 friend class BaseArena; 99 virtual BaseArena* arena() { return this; } in arena() 177 BaseArena(const BaseArena&) = delete; 178 BaseArena& operator=(const BaseArena&) = delete; 181 class UnsafeArena : public BaseArena { 185 : BaseArena(nullptr, block_size, false) {} in UnsafeArena() 187 : BaseArena(nullptr, block_size, align) {} in UnsafeArena() [all …]
|
D | arena.cc | 110 const int BaseArena::kDefaultAlignment; 118 BaseArena::BaseArena(char* first, const size_t orig_block_size, in BaseArena() function in libtextclassifier3::BaseArena 162 BaseArena::~BaseArena() { in ~BaseArena() 183 int BaseArena::block_count() const { in block_count() 190 bool BaseArena::SatisfyAlignment(size_t alignment) { in SatisfyAlignment() 210 void BaseArena::Reset() { in Reset() 235 void BaseArena::MakeNewBlock(const uint32 alignment) { in MakeNewBlock() 273 BaseArena::AllocatedBlock* BaseArena::AllocNewBlock(const size_t block_size, in AllocNewBlock() 349 const BaseArena::AllocatedBlock *BaseArena::IndexToBlock(int index) const { in AllocNewBlock() 371 void* BaseArena::GetMemoryFallback(const size_t size, const int alignment) { in AllocNewBlock() [all …]
|
D | arena_test.cc | 211 ::testing::Values(BaseArena::kDefaultAlignment + 1, 10, 225 char* buffer = new char[blksize + BaseArena::kDefaultAlignment]; in TEST_P() 247 void ShowStatus(const char* const header, const BaseArena::Status& status) { in ShowStatus() 329 void DoPoisonTest(BaseArena* b, size_t size) { in DoPoisonTest()
|