| 523 | } |
| 524 | |
| 525 | void Deallocate(size_t num_bytes, void *ptr) { |
| 526 | auto it = t_bins_.find(num_bytes); |
| 527 | if (it != t_bins_.end()) { |
| 528 | return it->second->Deallocate(ptr); |
| 529 | } |
| 530 | auto b = new ThreadLocalBin<ChunkType>(num_bytes, page_map_, arena_); |
| 531 | t_bins_.emplace(num_bytes, b); |
| 532 | b->Deallocate(ptr); |
| 533 | } |
| 534 | |
| 535 | private: |
| 536 | PageMap<ChunkType> * page_map_ = nullptr; // not owned |
nothing calls this directly
no test coverage detected