| 5151 | } |
| 5152 | |
| 5153 | void revert(const xpath_allocator& state) |
| 5154 | { |
| 5155 | // free all new pages |
| 5156 | xpath_memory_block* cur = _root; |
| 5157 | |
| 5158 | while (cur != state._root) |
| 5159 | { |
| 5160 | xpath_memory_block* next = cur->next; |
| 5161 | |
| 5162 | global_deallocate(cur); |
| 5163 | |
| 5164 | cur = next; |
| 5165 | } |
| 5166 | |
| 5167 | // restore state |
| 5168 | _root = state._root; |
| 5169 | _root_size = state._root_size; |
| 5170 | } |
| 5171 | |
| 5172 | void release() |
| 5173 | { |
no outgoing calls
no test coverage detected