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

Issue 2867233002: [wasm] Do not unregister an ArrayBuffer if it is already external (Closed)

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

Description

[wasm] Do not unregister an ArrayBuffer if it is already external - Currently if GrowMemory is called with pages = 0, an attempt is made to unregister the ArrayBuffer even if it is external. Cleanup so all Detaching of ArrayBuffer is centralized to one method, and can only be called fromJS. - Gate creating WeakHandles to the memory on the buffer having guard pages enabled. Currently creating a WeakHandle is gated only on if the buffer is_external true. If a buffer is marked is_external = true to begin with, the WeakHandle is created and the Finalizer is run causing the program to crash. BUG=chromium:717647 Review-Url: https://codereview.chromium.org/2867233002 Cr-Commit-Position: refs/heads/master@{#45238} Committed: https://chromium.googlesource.com/v8/v8/+/e2fc979e0e9b81b37144e3371a05163324102dd0

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Format #

Patch Set 4 : Fix constructor #

Patch Set 5 : Fix bot #

Total comments: 4

Patch Set 6 : Andreas's review #

Patch Set 7 : Rebase #

Total comments: 4

Patch Set 8 : Clemens's review #

Patch Set 9 : Eric's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -15 lines) Patch
M src/wasm/wasm-js.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M src/wasm/wasm-objects.cc View 1 2 3 4 1 chunk +3 lines, -11 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (38 generated)
gdeepti
3 years, 7 months ago (2017-05-10 06:42:17 UTC) #19
ahaas
lgtm with nits https://codereview.chromium.org/2867233002/diff/80001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2867233002/diff/80001/src/wasm/wasm-module.cc#newcode2235 src/wasm/wasm-module.cc:2235: uint32_t pages) { could you just ...
3 years, 7 months ago (2017-05-10 08:33:48 UTC) #23
gdeepti
https://codereview.chromium.org/2867233002/diff/80001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2867233002/diff/80001/src/wasm/wasm-module.cc#newcode2235 src/wasm/wasm-module.cc:2235: uint32_t pages) { On 2017/05/10 08:33:48, ahaas wrote: > ...
3 years, 7 months ago (2017-05-10 15:50:35 UTC) #26
Clemens Hammacher
Sorry for nitpicking, but can you please format the commit message according to the style ...
3 years, 7 months ago (2017-05-10 16:00:10 UTC) #28
gdeepti
Edited the message in the browser so missed formatting, thanks for pointing it out! https://codereview.chromium.org/2867233002/diff/120001/src/wasm/wasm-js.cc ...
3 years, 7 months ago (2017-05-10 16:14:28 UTC) #30
Clemens Hammacher
On 2017/05/10 at 16:14:28, gdeepti wrote: > Edited the message in the browser so missed ...
3 years, 7 months ago (2017-05-10 16:15:53 UTC) #31
gdeepti
On 2017/05/10 16:15:53, Clemens Hammacher wrote: > On 2017/05/10 at 16:14:28, gdeepti wrote: > > ...
3 years, 7 months ago (2017-05-10 16:19:27 UTC) #34
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/2867233002/140001
3 years, 7 months ago (2017-05-10 16:21:34 UTC) #37
Eric Holk
lgtm with nit https://codereview.chromium.org/2867233002/diff/120001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2867233002/diff/120001/src/wasm/wasm-module.cc#newcode858 src/wasm/wasm-module.cc:858: if (is_external && enable_guard_regions) { nit: ...
3 years, 7 months ago (2017-05-10 16:23:15 UTC) #38
gdeepti
https://codereview.chromium.org/2867233002/diff/120001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2867233002/diff/120001/src/wasm/wasm-module.cc#newcode858 src/wasm/wasm-module.cc:858: if (is_external && enable_guard_regions) { On 2017/05/10 16:23:15, Eric ...
3 years, 7 months ago (2017-05-10 16:37:10 UTC) #42
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/2867233002/160001
3 years, 7 months ago (2017-05-10 17:09:01 UTC) #47
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 17:28:55 UTC) #50
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/v8/v8/+/e2fc979e0e9b81b37144e3371a051633241...

Powered by Google App Engine
This is Rietveld 408576698