NEW 170748
WebAssembly: improve GC for fast memory
https://bugs.webkit.org/show_bug.cgi?id=170748
Summary WebAssembly: improve GC for fast memory
JF Bastien
Reported 2017-04-11 13:58:17 PDT
As part of bug #170628 I'm tuning how we call GC for fast memories: running the GC could free some up. The code currently calls collectAllGarbage in the current VM. We could be smarter though: 1. We pass in the *current* VM to call a GC on. Nothing tells us that the current VM is holding onto a fast memory, it could be any VM. Should we instead iterate all of them, and GC the ones which are using wasm? 2. collectSync(Full) and custom eager destruction of wasm memories could be better. That would mean that we have a separate space where we track all fast memories, so we can sweep the dead ones without sweeping everything else.
Attachments
Note You need to log in before you can comment on or make changes to this bug.