Skip to content

Commit 5da70fc

Browse files
generatedunixname1395027625275998meta-codesync[bot]
authored andcommitted
fbcode/cachelib/allocator/memory/MemoryPool.cpp
Reviewed By: fbarotov Differential Revision: D101111749 fbshipit-source-id: 8fc0a2240fa04d127a78b7c8dc37025d65114ab9
1 parent 0aa152b commit 5da70fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cachelib/allocator/memory/MemoryPool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ void MemoryPool::completeSlabRelease(const SlabReleaseContext& context) {
549549
MPStats MemoryPool::getStats() const {
550550
LockHolder l(lock_);
551551
folly::F14FastMap<ClassId, ACStats> acStats;
552+
acStats.reserve(ac_.size());
552553
std::set<ClassId> classIds;
553554
for (const auto& ac : ac_) {
554555
acStats.insert({ac->getId(), ac->getStats()});

0 commit comments

Comments
 (0)