debugResetPool static method

void debugResetPool()

Diagnostics / test introspection — clears the process-global pool and the step-8 warm-parent cache (the migrated-instance parents are keyed on pool contents, so they must be evicted together to stay consistent). Used only by tests that need a pristine pool (both are otherwise immortal for the life of the process). Not part of the normal runtime contract.

Implementation

static void debugResetPool() {
  _packagePool.clear();
  _warmParentCache.clear();
}