Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Issue 2544273002: [wasm] Fix WasmInstanceWrapper allocation. (Closed)

Created:
4 years ago by gdeepti
Modified:
4 years ago
Reviewers:
titzer, petermarshall
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Fix WasmInstanceWrapper allocation. In the current implementation, WasmInstanceWrapper is allocated after the imports for the instance are processed, and before the InstanceFinalizer callback is associated with the instance. This raises the possibility of triggering a gc in the middle of the instantiate flow which is incorrect. BUG=5707 R=titzer@chromium.org, petermarshall@chromium.org Committed: https://crrev.com/6454102c5b68caa13411ca0d07e915444fd90eec Cr-Commit-Position: refs/heads/master@{#41464}

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : rename test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -5 lines) Patch
M src/wasm/wasm-objects.cc View 2 chunks +5 lines, -5 lines 0 comments Download
A test/mjsunit/wasm/instance-memory-gc-stress.js View 1 2 1 chunk +124 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
gdeepti
4 years ago (2016-12-02 09:22:54 UTC) #3
titzer
On 2016/12/02 09:22:54, gdeepti wrote: lgtm. Is it possible to write a test that is ...
4 years ago (2016-12-02 09:54:21 UTC) #6
gdeepti
On 2016/12/02 09:54:21, titzer wrote: > On 2016/12/02 09:22:54, gdeepti wrote: > > lgtm. Is ...
4 years ago (2016-12-03 00:29:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2544273002/40001
4 years ago (2016-12-03 00:29:50 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-03 01:29:25 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-03 01:29:56 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6454102c5b68caa13411ca0d07e915444fd90eec
Cr-Commit-Position: refs/heads/master@{#41464}

Powered by Google App Engine
This is Rietveld 408576698