Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Destroy wavm module instances when deleting the wavm_instantiated_module #7176

Merged
merged 3 commits into from
Apr 24, 2019

Conversation

spoonincode
Copy link
Contributor

Change Description

When we instantiate a wasm with wavm we get back a ModuleInstance. But deleting this object is a noop because wavm has its own garpage collection thing. Implement the code to interface with the garbage collection so that deleting a ModuleInstance can really free up the objects that are associated with it. Otherwise, evictions from the wasm_cache don't actually free up wavm (or system) resources

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

When we instantiate a wasm with wavm we get back a ModuleInstance. But deleting this object is a noop because wavm has its own garpage collection thing. Implement the code to interface with the garbage collection so that deleting a ModuleInstance can really free up the objects that are associated with it
@arhag arhag merged commit f83c5d5 into develop Apr 24, 2019
@spoonincode spoonincode deleted the wavm_module_gc branch April 25, 2019 21:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants