MCPcopy Create free account
hub / github.com/Snapchat/Valdi / removeExpiredRuntimes

Method removeExpiredRuntimes

valdi/src/valdi/runtime/RuntimeManager.cpp:370–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 clearViewPools();
369 for (const auto& runtime : getAllRuntimes()) {
370 runtime->removeUnusedResources();
371 }
372}
373
374void RuntimeManager::applicationWillTerminate() {
375 VALDI_INFO(*_logger, "Application will terminate");
376 Valdi::setApplicationShuttingDown(true);
377 stopDebuggerServices();
378
379 for (const auto& runtime : getAllRuntimes()) {
380 runtime->getJavaScriptRuntime()->partialTeardown();
381 }
382}

Callers

nothing calls this directly

Calls 4

endMethod · 0.65
beginMethod · 0.45
expiredMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected