| 232 | #endif |
| 233 | |
| 234 | void |
| 235 | Cache::clearAllocation() |
| 236 | { |
| 237 | for (auto span : _spans) { |
| 238 | span->clear(); |
| 239 | } |
| 240 | for (auto &item : _volumes) { |
| 241 | item.second.clear(); |
| 242 | } |
| 243 | } |
| 244 | /* --------------------------------------------------------------------------------------- */ |
| 245 | /// Temporary structure used for doing allocation computations. |
| 246 | class VolumeAllocator |