| 547 | } |
| 548 | |
| 549 | void SharedArbitrator::removePool(MemoryPool* pool) { |
| 550 | BOLT_CHECK_EQ(pool->reservedBytes(), 0, "{}", pool->name()); |
| 551 | const uint64_t freedBytes = shrinkPool(pool, 0); |
| 552 | BOLT_CHECK_EQ(pool->capacity(), 0, "{}", pool->name()); |
| 553 | freeCapacity(freedBytes); |
| 554 | |
| 555 | std::unique_lock guard{participantLock_}; |
| 556 | const auto ret = participants_.erase(pool->name()); |
| 557 | BOLT_CHECK_EQ(ret, 1, "{}", pool->name()); |
| 558 | } |
| 559 | |
| 560 | std::vector<ArbitrationCandidate> SharedArbitrator::getCandidates( |
| 561 | bool freeCapacityOnly) { |
no test coverage detected