MCPcopy Create free account
hub / github.com/bytedance/bolt / dropPool

Method dropPool

bolt/common/memory/Memory.cpp:408–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 if (poolCount > kNumSystemPools) {
407 return {ManagedPoolState::Kind::kHasOutstandingPools, poolCount, {}};
408 }
409 if (poolCount < kNumSystemPools) {
410 return {
411 ManagedPoolState::Kind::kInvalidSystemState,
412 poolCount,
413 "Unreachable code"};
414 }
415
416 int32_t spillPoolCount = 0;
417 int32_t cachePoolCount = 0;
418 int32_t tracePoolCount = 0;
419 visitSystemRootChildren([&](MemoryPool* child) -> bool {
420 if (child == spillPool_.get()) {
421 ++spillPoolCount;
422 }
423 if (child == cachePool_.get()) {
424 ++cachePoolCount;

Callers

nothing calls this directly

Calls 6

reservedBytesMethod · 0.45
removePoolMethod · 0.45
findMethod · 0.45
nameMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected