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

Issue 1255563002: [d8 Workers] Fix bug creating Worker during main thread termination (Closed)

Created:
5 years, 5 months ago by binji
Modified:
5 years, 4 months ago
Reviewers:
Jarin
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[d8 Workers] Fix bug creating Worker during main thread termination When the main thread terminates, it forcibly terminates all Worker threads. When this happens, the threads objects were only half-created; they had a JavaScript Worker object, but not a C++ worker object. This CL fixes that bug, as well as some other fixes: * Signatures on Worker methods * Use SetAlignedPointerFromInternalField instead of using an External. * Remove state_ from Worker. Simplify to atomic bool running_. BUG=chromium:511880 R=jarin@chromium.org LOG=n Committed: https://crrev.com/a87db3dec86e220a402377ca244f879ed0128bfb Cr-Commit-Position: refs/heads/master@{#29911}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : doc comments, make running_ atomic #

Total comments: 2

Patch Set 4 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -70 lines) Patch
M src/d8.h View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M src/d8.cc View 1 2 3 12 chunks +58 lines, -61 lines 0 comments Download
A test/mjsunit/regress/regress-crbug-511880.js View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
binji
5 years, 5 months ago (2015-07-23 01:10:35 UTC) #1
Jarin
One question. If this is answered, it looks good. https://codereview.chromium.org/1255563002/diff/20001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1255563002/diff/20001/src/d8.cc#newcode1842 src/d8.cc:1842: ...
5 years, 5 months ago (2015-07-23 07:48:42 UTC) #2
binji
https://codereview.chromium.org/1255563002/diff/20001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1255563002/diff/20001/src/d8.cc#newcode1842 src/d8.cc:1842: state_ = TERMINATED; On 2015/07/23 at 07:48:41, jarin wrote: ...
5 years, 5 months ago (2015-07-24 18:52:29 UTC) #3
Jarin
lgtm. https://codereview.chromium.org/1255563002/diff/40001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1255563002/diff/40001/src/d8.cc#newcode780 src/d8.cc:780: } How about factoring out the extraction of ...
5 years, 5 months ago (2015-07-27 05:09:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1255563002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1255563002/80001
5 years, 4 months ago (2015-07-28 22:47:57 UTC) #8
binji
https://codereview.chromium.org/1255563002/diff/40001/src/d8.cc File src/d8.cc (right): https://codereview.chromium.org/1255563002/diff/40001/src/d8.cc#newcode780 src/d8.cc:780: } On 2015/07/27 at 05:09:28, Jarin (OOO - vacation) ...
5 years, 4 months ago (2015-07-29 04:37:14 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 4 months ago (2015-07-30 08:19:32 UTC) #10
commit-bot: I haz the power
5 years, 4 months ago (2015-07-30 08:19:49 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a87db3dec86e220a402377ca244f879ed0128bfb
Cr-Commit-Position: refs/heads/master@{#29911}

Powered by Google App Engine
This is Rietveld 408576698