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
Right now the semantics of map<K, V> mean that if duplicate keys are supplied then the last-specified key is the one present in the map. This is generally fine but this means that Wasmtime does not provide embedders the means to correctly operate with maps-of-handles because the embedder can't ever properly deallocate the handles it was given. For example if the host is given two own handles it'll only actually receive one of them, meaning the other effectively leaks.
Activity
Don't leak handles from duplicate keys when lifting maps
Fuzz maps of resources with duplicate keys
Fuzz maps of resources with duplicate keys
Drop replaced handles when deduplicating map keys