You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Component resource tables keep entries the guest no longer holds #2099
The Rust host bindings' VecDeque table keeps an empty entry after every take, like the C# table fixed in Remove C# resource table entries once they're released #2098. The object itself is freed, so each transfer leaks only a small entry. A long-lived sandbox that passes resources grows without bound, slowly. A guest can drive this by calling a host function that returns a resource in a loop.
Restoring a snapshot doesn't reset the host tables, so entries for handles created after the snapshot stay. These entries still hold the host objects, so the objects are never freed, including any native resources they hold. A host that restores after every call keeps every resource created during those calls.
Both affect only WIT worlds that pass resources. Guest drops are tracked in #810.
Activity