Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/base/
Darena.cc122 freestart_(nullptr), // set for real in Reset() in BaseArena()
192 reinterpret_cast<size_t>(freestart_) & (alignment - 1); in SatisfyAlignment()
198 freestart_ += waste; in SatisfyAlignment()
201 TC3_DCHECK_EQ(0, reinterpret_cast<size_t>(freestart_) & (alignment - 1)); in SatisfyAlignment()
212 freestart_ = first_blocks_[0].mem; in Reset()
216 ASAN_POISON_MEMORY_REGION(freestart_, remaining_); in Reset()
225 freestart_when_empty_ = freestart_; in Reset()
237 freestart_ = block->mem; in MakeNewBlock()
399 last_alloc_ = freestart_; in AllocNewBlock()
400 freestart_ += size; in AllocNewBlock()
[all …]
Darena.h104 return freestart_ == freestart_when_empty_ && 1 == block_count(); in is_empty()
117 last_alloc_ = freestart_; in GetMemory()
118 freestart_ += size; in GetMemory()
131 size == static_cast<size_t>(freestart_ - last_alloc_)) { in ReturnMemory()
133 freestart_ = last_alloc_; in ReturnMemory()
164 char* freestart_; // beginning of the free space in most recent block variable
/external/tensorflow/tensorflow/core/lib/core/
Darena.cc48 freestart_(nullptr), // set for real in Reset() in Arena()
73 const size_t overage = reinterpret_cast<size_t>(freestart_) & (alignment - 1); in SatisfyAlignment()
79 freestart_ += waste; in SatisfyAlignment()
82 DCHECK_EQ(size_t{0}, reinterpret_cast<size_t>(freestart_) & (alignment - 1)); in SatisfyAlignment()
93 freestart_ = first_blocks_[0].mem; in Reset()
100 freestart_when_empty_ = freestart_; in Reset()
112 freestart_ = block->mem; in MakeNewBlock()
216 void* result = freestart_; in GetMemoryFallback()
217 freestart_ += size; in GetMemoryFallback()
Darena.h70 void* result = freestart_; in GetMemory()
71 freestart_ += size; in GetMemory()
94 char* freestart_; // beginning of the free space in most recent block variable