Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/lib/core/
Darena.cc50 overflow_blocks_(nullptr) { in Arena()
63 assert(overflow_blocks_ == nullptr); // FreeBlocks() should do that in ~Arena()
143 if (overflow_blocks_ == nullptr) in AllocNewBlock()
144 overflow_blocks_ = new std::vector<AllocatedBlock>; in AllocNewBlock()
146 overflow_blocks_->resize(overflow_blocks_->size() + 1); in AllocNewBlock()
148 block = &overflow_blocks_->back(); in AllocNewBlock()
241 if (overflow_blocks_ != nullptr) { in FreeBlocks()
243 for (it = overflow_blocks_->begin(); it != overflow_blocks_->end(); ++it) { in FreeBlocks()
246 delete overflow_blocks_; // These should be used very rarely in FreeBlocks()
247 overflow_blocks_ = nullptr; in FreeBlocks()
Darena.h100 std::vector<AllocatedBlock>* overflow_blocks_; variable
/external/libtextclassifier/native/utils/base/
Darena.cc124 overflow_blocks_(nullptr), in BaseArena()
164 assert(overflow_blocks_ == nullptr); // FreeBlocks() should do that in ~BaseArena()
185 (overflow_blocks_ ? static_cast<int>(overflow_blocks_->size()) : 0)); in block_count()
281 if (overflow_blocks_ == nullptr) in AllocNewBlock()
282 overflow_blocks_ = new std::vector<AllocatedBlock>; in AllocNewBlock()
284 overflow_blocks_->resize(overflow_blocks_->size()+1); in AllocNewBlock()
286 block = &overflow_blocks_->back(); in AllocNewBlock()
353 TC3_CHECK(overflow_blocks_ != nullptr); in AllocNewBlock()
357 overflow_blocks_->size()); in AllocNewBlock()
358 return &(*overflow_blocks_)[index_in_overflow_blocks]; in AllocNewBlock()
[all …]
Darena.h168 std::vector<AllocatedBlock>* overflow_blocks_; variable