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

Issue 684223004: ServiceWorker: Fix data race in shutdown sequence (Closed)

Created:
6 years, 1 month ago by Kunihiko Sakamoto
Modified:
6 years, 1 month ago
Reviewers:
haraken, horo
CC:
blink-reviews, serviceworker-reviews
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Fix data race in shutdown sequence To avoid Worker thread's termination code touching released objects owned by WebEmbeddedWorkerImpl, join the worker thread in the destructor of WebEmbeddedWorkerImpl. BUG=426332 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184647

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Kunihiko Sakamoto
Second attempt to fix TSAN warning (first one: https://codereview.chromium.org/675423002/).
6 years, 1 month ago (2014-10-30 02:30:00 UTC) #2
haraken
https://codereview.chromium.org/684223004/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/684223004/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp#newcode177 Source/web/WebEmbeddedWorkerImpl.cpp:177: m_workerThread->terminationEvent()->wait(); Can we create a helper method like WorkerThread::terminateAndWait() ...
6 years, 1 month ago (2014-10-30 02:40:25 UTC) #3
Kunihiko Sakamoto
https://codereview.chromium.org/684223004/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp File Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/684223004/diff/1/Source/web/WebEmbeddedWorkerImpl.cpp#newcode177 Source/web/WebEmbeddedWorkerImpl.cpp:177: m_workerThread->terminationEvent()->wait(); On 2014/10/30 02:40:24, haraken wrote: > > Can ...
6 years, 1 month ago (2014-10-30 04:50:16 UTC) #4
haraken
LGTM, but I want to have horo-san to confirm. https://codereview.chromium.org/684223004/diff/20001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/684223004/diff/20001/Source/core/workers/WorkerThread.cpp#newcode406 Source/core/workers/WorkerThread.cpp:406: ...
6 years, 1 month ago (2014-10-30 05:12:13 UTC) #5
horo
https://codereview.chromium.org/684223004/diff/20001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/684223004/diff/20001/Source/core/workers/WorkerThread.cpp#newcode420 Source/core/workers/WorkerThread.cpp:420: stop(); I think we don't need to call stop() ...
6 years, 1 month ago (2014-10-30 08:14:47 UTC) #6
Kunihiko Sakamoto
https://codereview.chromium.org/684223004/diff/20001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/684223004/diff/20001/Source/core/workers/WorkerThread.cpp#newcode420 Source/core/workers/WorkerThread.cpp:420: stop(); On 2014/10/30 08:14:47, horo wrote: > I think ...
6 years, 1 month ago (2014-10-30 08:31:29 UTC) #7
horo
lgtm
6 years, 1 month ago (2014-10-30 08:37:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/684223004/40001
6 years, 1 month ago (2014-10-30 09:56:19 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 13:08:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 184647

Powered by Google App Engine
This is Rietveld 408576698