[wasm] Remove code to be logged when native module dies
We have very few tests for this currently, and it's hard to test this, since code logging happens soon after scheduling the task and stack guard. If the timing is just right, it can happen though that a {NativeModule} dies while {WasmCode} objects of that {NativeModule} are still part of the {code_to_log} vector. In that case, we need to remove those code objects from the vector to avoid use after free. R=mstarzinger@chromium.org Change-Id: I16c7098bf11c54700cc650dad965106af2e39157 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1566519Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#60902}
Showing
Please
register
or
sign in
to comment