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

Issue 1257723002: Simplify ownership of a ThreadState's interruptors. (Closed)

Created:
5 years, 5 months ago by sof
Modified:
5 years, 3 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, oilpan-reviews, Mads Ager (chromium), falken, kinuko+worker_chromium.org, horo+watch_chromium.org, kouhei+heap_chromium.org, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Simplify ownership of a ThreadState's interruptors. Have ThreadState assume ownership of interruptors registered with addInterruptor(). That simplifies the handling on the caller side, allowing them to register-and-forget rather than each having to manually unregister & destruct their interruptor before shutting down. (Not that this last step wasn't needed previously either, as ThreadState would have destructed the interruptors upon its destruction.) (ThreadState::removeInterruptor() is retained should it prove useful, but currently unused.) R=haraken BUG=420515 Committed: https://crrev.com/4800e03bbc37af803129ee4f56d0d1b3153e13b3 git-svn-id: svn://svn.chromium.org/blink/trunk@199487 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 2

Patch Set 2 : Switch addInterruptor() to take a PassOwnPtr<> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -40 lines) Patch
M Source/core/workers/WorkerThread.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerManager.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerManager.cpp View 1 2 chunks +3 lines, -5 lines 0 comments Download
M Source/platform/WebThreadSupportingGC.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/WebThreadSupportingGC.cpp View 1 2 chunks +2 lines, -4 lines 0 comments Download
M Source/platform/heap/SafePoint.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/ThreadState.h View 1 3 chunks +7 lines, -5 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 chunks +1 line, -4 lines 0 comments Download
M Source/web/WebKit.cpp View 1 4 chunks +4 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
sof
please take a look.
5 years, 5 months ago (2015-07-24 18:40:19 UTC) #2
haraken
Maybe can we simplify things a bit more by making each ThreadState own an Interruptor ...
5 years, 5 months ago (2015-07-24 18:58:33 UTC) #4
sof
Why would making ThreadState have an interruptor be a worthwhile improvement? Both the main thread ...
5 years, 5 months ago (2015-07-25 15:00:40 UTC) #5
haraken
On 2015/07/25 15:00:40, sof wrote: > Why would making ThreadState have an interruptor be a ...
5 years, 5 months ago (2015-07-26 17:32:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1257723002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1257723002/20001
5 years, 4 months ago (2015-07-27 05:12:39 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199487
5 years, 4 months ago (2015-07-27 07:04:18 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:47:43 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4800e03bbc37af803129ee4f56d0d1b3153e13b3

Powered by Google App Engine
This is Rietveld 408576698