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

Issue 2653183003: [wasm] Memory buffer should be detached after Memory.Grow (Closed)

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

Description

[wasm] Memory buffer should be detached after Memory.Grow Memory.Grow should detach the ArrayBuffer associated with the Mem object after Grow. Currently, when guard pages are enabled protection is changed to make more of the buffer accessible. This does not work for when the buffer should be detached after grow, because the memory object has a reference to the same buffer befor/after grow. R=titzer@chromium.org, eholk@chromium.org Review-Url: https://codereview.chromium.org/2653183003 Cr-Commit-Position: refs/heads/master@{#42717} Committed: https://chromium.googlesource.com/v8/v8/+/e6d13999fd1bdb7ca403e157e6cafd05ce4def26

Patch Set 1 #

Total comments: 14

Patch Set 2 : Eric's review #

Patch Set 3 : Ben's review #

Patch Set 4 : Remove stray printf #

Patch Set 5 : Enable js-api test for d=0 #

Patch Set 6 : Fix #

Patch Set 7 : Fix #

Total comments: 2

Patch Set 8 : Ben's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -48 lines) Patch
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 7 chunks +82 lines, -43 lines 0 comments Download
M test/mjsunit/wasm/import-memory.js View 1 chunk +14 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/js-api.js View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
gdeepti
Tracking issue for Memory.Grow to use the same backing store and fixing when memory is ...
3 years, 11 months ago (2017-01-25 06:33:41 UTC) #3
titzer
https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc#newcode736 src/wasm/wasm-js.cc:736: if (delta_size != 0) { There was a discussion ...
3 years, 11 months ago (2017-01-25 09:28:57 UTC) #6
Eric Holk
https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc#newcode740 src/wasm/wasm-js.cc:740: : false; nit: Is the ? operator needed here? ...
3 years, 11 months ago (2017-01-25 18:16:57 UTC) #7
gdeepti
https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc#newcode740 src/wasm/wasm-js.cc:740: : false; On 2017/01/25 18:16:57, Eric Holk wrote: > ...
3 years, 11 months ago (2017-01-25 18:59:19 UTC) #10
gdeepti
https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2653183003/diff/1/src/wasm/wasm-js.cc#newcode736 src/wasm/wasm-js.cc:736: if (delta_size != 0) { On 2017/01/25 09:28:57, titzer ...
3 years, 11 months ago (2017-01-25 21:05:25 UTC) #17
Eric Holk
lgtm, as long as it also looks good to Ben.
3 years, 11 months ago (2017-01-25 22:45:19 UTC) #20
gdeepti
+ bradnelson@ as Ben is in transit.
3 years, 11 months ago (2017-01-26 16:53:39 UTC) #26
titzer
lgtm https://codereview.chromium.org/2653183003/diff/110001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2653183003/diff/110001/src/wasm/wasm-module.cc#newcode2361 src/wasm/wasm-module.cc:2361: const bool enable_guard_regions = Can you please add ...
3 years, 11 months ago (2017-01-26 21:35:27 UTC) #27
gdeepti
https://codereview.chromium.org/2653183003/diff/110001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2653183003/diff/110001/src/wasm/wasm-module.cc#newcode2361 src/wasm/wasm-module.cc:2361: const bool enable_guard_regions = On 2017/01/26 21:35:27, titzer wrote: ...
3 years, 11 months ago (2017-01-26 21:41:30 UTC) #28
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/2653183003/130001
3 years, 11 months ago (2017-01-26 21:43:57 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 22:16:06 UTC) #34
Message was sent while issue was closed.
Committed patchset #8 (id:130001) as
https://chromium.googlesource.com/v8/v8/+/e6d13999fd1bdb7ca403e157e6cafd05ce4...

Powered by Google App Engine
This is Rietveld 408576698