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

Issue 2538183003: Revert of [wasm] WebAssembly.Memory object can be referenced by multiple Instance objects. (Closed)

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

Description

Revert of [wasm] WebAssembly.Memory object can be referenced by multiple Instance objects. (patchset #14 id:260001 of https://codereview.chromium.org/2471883003/ ) Reason for revert: Probably causes bot failures (see https://bugs.chromium.org/p/v8/issues/detail?id=5707). TBR=mtrofin@chromium.org Original issue's description: > [wasm] WebAssembly.Memory object can be referenced by multiple Instance objects. > > Add support for WebAssembly.Memory objects to be simultaneously referenced by multiple Instance objects. GrowingMemory should maintain a consistent view of memory across instances. > - Store a link to instances that share WebAssembly.Memory in the WasmMemoryObject, updated on instantiate. > - Implement WasmInstanceWrapper as a wrapper around the instance object to keep track of previous/next instances, instance object is stored as a WeakCell that can be garbage collected. > - MemoryInstanceFinalizer maintains a valid list of instances when an instance is garbage collected. > - Refactor GrowInstanceMemory to GrowMemoryBuffer that allocates a new buffer, and UncheckedUpdateInstanceMemory that updates memory references for an instance. > > R=titzer@chromium.org, mtrofin@chromium.org, bradnelson@chromium.org > > Committed: https://crrev.com/30ef8e33f3a199a27ca8512bcee314c9522d03f6 > Committed: https://crrev.com/3c98e339599b068f1ed630afb7601ff942424d31 > Committed: https://crrev.com/e108f90d5c17588910f1f91c56ceba2580277000 > Cr-Original-Original-Commit-Position: refs/heads/master@{#41121} > Cr-Original-Commit-Position: refs/heads/master@{#41198} > Cr-Commit-Position: refs/heads/master@{#41234} TBR=bradnelson@chromium.org,mtrofin@chromium.org,titzer@chromium.org,ahaas@chromium.org,gdeepti@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -543 lines) Patch
M src/runtime/runtime-wasm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-js.cc View 4 chunks +29 lines, -7 lines 0 comments Download
M src/wasm/wasm-module.h View 1 chunk +0 lines, -6 lines 0 comments Download
M src/wasm/wasm-module.cc View 10 chunks +61 lines, -167 lines 0 comments Download
M src/wasm/wasm-objects.h View 5 chunks +3 lines, -63 lines 0 comments Download
M src/wasm/wasm-objects.cc View 5 chunks +5 lines, -57 lines 0 comments Download
M test/mjsunit/wasm/import-memory.js View 2 chunks +1 line, -138 lines 0 comments Download
M test/mjsunit/wasm/instantiate-module-basic.js View 1 chunk +0 lines, -1 line 0 comments Download
D test/mjsunit/wasm/memory-instance-validation.js View 1 chunk +0 lines, -103 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
petermarshall
Created Revert of [wasm] WebAssembly.Memory object can be referenced by multiple Instance objects.
4 years ago (2016-12-01 15:21:01 UTC) #2
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/2538183003/1
4 years ago (2016-12-01 15:21:14 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-12-01 15:21:15 UTC) #5
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/2538183003/1
4 years ago (2016-12-01 15:27:32 UTC) #7
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-12-01 15:27:34 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/2538183003/1
4 years ago (2016-12-01 15:31:32 UTC) #12
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-12-01 15:31:34 UTC) #14
Michael Hablich
On 2016/12/01 15:31:34, commit-bot: I haz the power wrote: > No L-G-T-M from a valid ...
4 years ago (2016-12-01 15:39:45 UTC) #15
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/2538183003/1
4 years ago (2016-12-01 15:39:53 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/17172) v8_linux_gcc_compile_rel on master.tryserver.v8 (JOB_FAILED, ...
4 years ago (2016-12-01 15:41:24 UTC) #19
titzer
On 2016/12/01 15:41:24, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-09 09:08:14 UTC) #20
petermarshall
3 years, 11 months ago (2017-01-09 09:09:13 UTC) #21
On 2017/01/09 at 09:08:14, titzer wrote:
> On 2016/12/01 15:41:24, commit-bot: I haz the power wrote:
> > Try jobs failed on following builders:
> >   v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED,
> >
http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/17172)
> >   v8_linux_gcc_compile_rel on master.tryserver.v8 (JOB_FAILED,
> >
http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/bu...)
> >   v8_linux_rel_ng on master.tryserver.v8 (JOB_FAILED,
> >
http://build.chromium.org/p/tryserver.v8/builders/v8_linux_rel_ng/builds/17139)
> >   v8_presubmit on master.tryserver.v8 (JOB_FAILED,
> > http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/29791)
> >   v8_win_rel_ng on master.tryserver.v8 (JOB_FAILED,
> >
http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel_ng/builds/18864)
> 
> Is this CL now obsolete?

Yeah I'll get rid of it.

Powered by Google App Engine
This is Rietveld 408576698