| 66 | reset(); |
| 67 | } |
| 68 | void block_arena_t::reset() |
| 69 | { |
| 70 | auto iter = first; |
| 71 | while (iter != nullptr) |
| 72 | { |
| 73 | auto next = iter->next; |
| 74 | pool.free(iter); |
| 75 | iter = next; |
| 76 | } |
| 77 | curr = 0; |
| 78 | last = first = nullptr; |
| 79 | } |
| 80 | void* block_arena_t::allocate(size_t s, size_t a) |
| 81 | { |
| 82 | if (s > pool.blockSize) |