dart-sdk/third_party/wasmer
Liam Appelbe 1b94364da7 [wasm] Clean up native objects using finalizers
The finalizers associate each native object with a Dart object that owns
them. The finalizers need to be in native code, so I had to go back to
the old approach of linking Wasmer and my native code into a single .so.

TEST=I tried running the wasm tests using asan, but it didn't detect any
leaks even before the finalizers. So I put printfs in all the
set_finalizer and finalizer functions and manually verified that all the
finalizers were being run.

Bug: https://github.com/dart-lang/sdk/issues/37882
Change-Id: I38303ae0c6c446a23562c1b157c92ccc9af2dc34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172680
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2020-11-24 21:12:09 +00:00
..
.gitignore
BUILD.gn [wasm] Clean up native objects using finalizers 2020-11-24 21:12:09 +00:00
Cargo.toml [wasm] Clean up native objects using finalizers 2020-11-24 21:12:09 +00:00
finalizers.cc [wasm] Clean up native objects using finalizers 2020-11-24 21:12:09 +00:00
LICENSE Revert "Switch wasmer FFI boilerplate to new API" 2020-10-10 05:56:29 +00:00
wasmer.rs Reland "Switch wasmer FFI boilerplate to new API" 2020-10-13 19:30:58 +00:00