releaseLoadedModules method

void releaseLoadedModules()

Step #3 (retention) — drops the per-loader parsed-module cache so a finished run's SCompilationUnit graph becomes collectable. Only the per-loader _moduleCache is cleared; the process-global shared bridge caches (sharedBridgedModuleEnvironments et al.) are untouched. A subsequent execute rebuilds the loader and re-populates the cache.

Implementation

void releaseLoadedModules() {
  _moduleCache.clear();
}