MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ~Arena

Method ~Arena

tensorflow/core/lib/core/arena.cc:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Arena::~Arena() {
62 FreeBlocks();
63 assert(overflow_blocks_ == nullptr); // FreeBlocks() should do that
64 // The first X blocks stay allocated always by default. Delete them now.
65 for (size_t i = 0; i < blocks_alloced_; ++i) {
66 port::AlignedFree(first_blocks_[i].mem);
67 }
68}
69
70// Returns true iff it advances freestart_ to the first position
71// satisfying alignment without exhausting the current block.

Callers

nothing calls this directly

Calls 1

AlignedFreeFunction · 0.50

Tested by

no test coverage detected