Description[wasm] Fix a memory leak in test-run-wasm-module.
The memory leak is fixed by calling the GC at the end of the tests. The GC collects the WasmModuleWrapper objects, which deallocates WasmModule c++ object. For the mjsunit tests the GC is already called because of the --invoke_weak_callbacks flag.
BUG=chromium:662388
Committed: https://crrev.com/0ab9ecc23ada2a8614afe46b86bcdd8cfc9cbbb4
Cr-Commit-Position: refs/heads/master@{#40822}
Patch Set 1 #Patch Set 2 : Let the handle scope end so the gc can collect the WasmModule #Patch Set 3 : fix memory leaks #Patch Set 4 : Rebase #Messages
Total messages: 15 (10 generated)
|