Home
last modified time | relevance | path

Searched refs:first_blocks_ (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/native/utils/base/
Darena.cc141 first_blocks_[0].mem = first; in BaseArena()
142 first_blocks_[0].size = orig_block_size; in BaseArena()
149 first_blocks_[0].mem = AllocateAlignedBytes(block_size_, kPageSize); in BaseArena()
150 first_blocks_[0].alignment = kPageSize; in BaseArena()
151 TC3_CHECK(nullptr != first_blocks_[0].mem); in BaseArena()
153 first_blocks_[0].mem = AllocateBytes(block_size_); in BaseArena()
154 first_blocks_[0].alignment = 0; in BaseArena()
156 first_blocks_[0].size = block_size_; in BaseArena()
167 ASAN_UNPOISON_MEMORY_REGION(first_blocks_[0].mem, first_blocks_[0].size); in ~BaseArena()
173 DeallocateBytes(first_blocks_[i].mem, first_blocks_[i].size, in ~BaseArena()
[all …]
Darena.h173 AllocatedBlock first_blocks_[16]; // the length of this array is arbitrary variable
/external/tensorflow/tensorflow/core/lib/core/
Darena.cc53 first_blocks_[0].mem = in Arena()
56 first_blocks_[0].size = block_size_; in Arena()
66 port::AlignedFree(first_blocks_[i].mem); in ~Arena()
93 freestart_ = first_blocks_[0].mem; in Reset()
94 remaining_ = first_blocks_[0].size; in Reset()
139 if (blocks_alloced_ < TF_ARRAYSIZE(first_blocks_)) { in AllocNewBlock()
141 block = &first_blocks_[blocks_alloced_++]; in AllocNewBlock()
236 port::AlignedFree(first_blocks_[i].mem); in FreeBlocks()
237 first_blocks_[i].mem = nullptr; in FreeBlocks()
238 first_blocks_[i].size = 0; in FreeBlocks()
Darena.h98 AllocatedBlock first_blocks_[16]; // the length of this array is arbitrary variable