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

Issue 2570433005: Disallow passing a SharedArrayBuffer in the transfer list. (Closed)

Created:
4 years ago by binji
Modified:
4 years ago
Reviewers:
jbroman, Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Disallow passing a SharedArrayBuffer in the transfer list. This behavior changed recently. SharedArrayBuffers should not be put in the transfer list, because they are not detached, and that is the meaning of being in the transfer list. This is the V8 side of the change, the Blink side will come next. Review-Url: https://codereview.chromium.org/2570433005 Cr-Commit-Position: refs/heads/master@{#41740} Committed: https://chromium.googlesource.com/v8/v8/+/1c5e1504e0305363cd262f1706cbd63f9a62ae46

Patch Set 1 #

Total comments: 14

Patch Set 2 : fix comments #

Total comments: 4

Patch Set 3 : fixes #

Patch Set 4 : TransferSharedArrayBuffer -> GetSharedArrayBufferId #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -36 lines) Patch
M include/v8.h View 1 2 3 3 chunks +20 lines, -4 lines 0 comments Download
M src/api.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M src/messages.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/value-serializer.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/value-serializer.cc View 1 2 3 5 chunks +25 lines, -15 lines 0 comments Download
M test/unittests/value-serializer-unittest.cc View 1 2 3 7 chunks +50 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
binji
4 years ago (2016-12-12 23:59:17 UTC) #2
Jakob Kummerow
lgtm https://codereview.chromium.org/2570433005/diff/1/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2570433005/diff/1/src/value-serializer.cc#newcode738 src/value-serializer.cc:738: ThrowDataCloneError( Would it make more sense to enforce ...
4 years ago (2016-12-13 02:34:58 UTC) #3
jbroman
lgtm with nits https://codereview.chromium.org/2570433005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2570433005/diff/1/include/v8.h#newcode1722 include/v8.h:1722: virtual Maybe<uint32_t> TransferSharedArrayBuffer(Isolate* isolate, Do we ...
4 years ago (2016-12-13 20:56:00 UTC) #4
binji
https://codereview.chromium.org/2570433005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2570433005/diff/1/include/v8.h#newcode1722 include/v8.h:1722: virtual Maybe<uint32_t> TransferSharedArrayBuffer(Isolate* isolate, On 2016/12/13 20:56:00, jbroman wrote: ...
4 years ago (2016-12-14 23:58:30 UTC) #5
jbroman
https://codereview.chromium.org/2570433005/diff/20001/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2570433005/diff/20001/src/value-serializer.cc#newcode740 src/value-serializer.cc:740: DCHECK(!index.IsNothing()); super-nit: index.FromJust() will already crash in this case; ...
4 years ago (2016-12-15 16:15:33 UTC) #10
binji
https://codereview.chromium.org/2570433005/diff/20001/src/value-serializer.cc File src/value-serializer.cc (right): https://codereview.chromium.org/2570433005/diff/20001/src/value-serializer.cc#newcode740 src/value-serializer.cc:740: DCHECK(!index.IsNothing()); On 2016/12/15 16:15:33, jbroman wrote: > super-nit: index.FromJust() ...
4 years ago (2016-12-15 19:31:21 UTC) #11
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/2570433005/40001
4 years ago (2016-12-15 19:31:56 UTC) #14
binji
https://codereview.chromium.org/2570433005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2570433005/diff/1/include/v8.h#newcode1722 include/v8.h:1722: virtual Maybe<uint32_t> TransferSharedArrayBuffer(Isolate* isolate, On 2016/12/14 23:58:30, binji wrote: ...
4 years ago (2016-12-15 23:24:45 UTC) #17
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/2570433005/60001
4 years ago (2016-12-15 23:24:54 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/v8/v8/+/1c5e1504e0305363cd262f1706cbd63f9a62ae46
4 years ago (2016-12-15 23:55:08 UTC) #23
Michael Achenbach
4 years ago (2016-12-16 07:34:26 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2579963002/ by machenbach@chromium.org.

The reason for reverting is: Breaks layout tests:
https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/bui...

See:
https://github.com/v8/v8/wiki/Blink-layout-tests.

Powered by Google App Engine
This is Rietveld 408576698