| 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; |
nothing calls this directly
no test coverage detected