| 59 | } |
| 60 | |
| 61 | Arena::~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. |
nothing calls this directly
no test coverage detected