MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / unsafeCleanup

Method unsafeCleanup

lib/vm/vm.cpp:640–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640void VM::unsafeCleanup() {
641 if (Mod) {
642 Mod.reset();
643 }
644 if (Comp) {
645 Comp.reset();
646 }
647 if (ActiveModInst) {
648 ActiveModInst.reset();
649 }
650 if (ActiveCompInst) {
651 ActiveCompInst.reset();
652 }
653 StoreRef.reset();
654 RegModInsts.clear();
655 Stat.clear();
656 unsafeLoadBuiltInHosts();
657 unsafeLoadPlugInHosts();
658 unsafeRegisterBuiltInHosts();
659 unsafeRegisterPlugInHosts();
660 LoaderEngine.reset();
661 Stage = VMStage::Inited;
662}
663
664std::vector<std::pair<std::string, const AST::FunctionType &>>
665VM::unsafeGetFunctionList() const {

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected