MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / gc

Method gc

crates/c-api/include/wasmtime/_store_class.hh:254–254  ·  view source on GitHub ↗

Runs a garbage collection pass in the referenced store to collect loose GC-managed objects, if any are available.

Source from the content-addressed store, hash-verified

252 /// Runs a garbage collection pass in the referenced store to collect loose
253 /// GC-managed objects, if any are available.
254 Result<std::monostate> gc() { return context().gc(); }
255#endif
256
257private:

Callers 5

wasmtime_context_gcFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36