Home
last modified time | relevance | path

Searched refs:ArenaBlock (Results 1 – 2 of 2) sorted by relevance

/frameworks/libs/binary_translation/base/include/berberis/base/
Darena_alloc.h41 struct ArenaBlock { struct
43 ArenaBlock* next; argument
45 uint8_t* data() { return reinterpret_cast<uint8_t*>(this) + sizeof(ArenaBlock); } in data() argument
49 inline ArenaBlock* AllocArenaBlock(size_t size, size_t align, ArenaBlock* blocks) { in AllocArenaBlock() argument
51 size += AlignUp(sizeof(ArenaBlock), align); in AllocArenaBlock()
55 return new (MmapPoolForArena::Alloc()) ArenaBlock{kDefaultArenaBlockSize, blocks}; in AllocArenaBlock()
57 return new (MmapOrDie(size)) ArenaBlock{AlignUpPageSize(size), blocks}; in AllocArenaBlock()
61 inline void FreeArenaBlocks(ArenaBlock* blocks) { in FreeArenaBlocks()
116 arena_internal::ArenaBlock* blocks_ = nullptr;
/frameworks/libs/binary_translation/base/
Darena_test.cc41 return AlignUpPageSize(AlignUp(sizeof(arena_internal::ArenaBlock), align) + requested_size); in BigMapSize()