| 56 | } |
| 57 | |
| 58 | void ExperimentalPMemAllocator::SpaceEntryPool::MoveEntryList( |
| 59 | std::vector<void*>& src, uint32_t b_size) { |
| 60 | std::lock_guard<spin_lock> lg(spins_[b_size]); |
| 61 | assert(b_size < pool_.size()); |
| 62 | pool_[b_size].emplace_back(); |
| 63 | pool_[b_size].back().swap(src); |
| 64 | } |
| 65 | |
| 66 | bool ExperimentalPMemAllocator::SpaceEntryPool::FetchEntryList( |
| 67 | std::vector<void*>& dst, uint32_t b_size) { |
no test coverage detected