| 89 | // ---------------------------------------------------------------------- |
| 90 | |
| 91 | void Arena::Reset() { |
| 92 | FreeBlocks(); |
| 93 | freestart_ = first_blocks_[0].mem; |
| 94 | remaining_ = first_blocks_[0].size; |
| 95 | |
| 96 | // There is no guarantee the first block is properly aligned, so |
| 97 | // enforce that now. |
| 98 | CHECK(SatisfyAlignment(kDefaultAlignment)); |
| 99 | |
| 100 | freestart_when_empty_ = freestart_; |
| 101 | } |
| 102 | |
| 103 | // ---------------------------------------------------------------------- |
| 104 | // Arena::MakeNewBlock() |
no outgoing calls