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

Issue 1293253005: Completely remove InterruptableThreadState and Fix ThreadRegistry leak (Closed)

Created:
5 years, 4 months ago by Cutch
Modified:
5 years, 4 months ago
Reviewers:
koda, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Completely remove InterruptableThreadState - InterruptableThreadState is gone. - Moved InterruptableThreadState fields directly into Thread. - Iterate over all threads in an isolate when profiling. - Still only sample the mutator thread. Fix ThreadRegistry leak - When deleting a Thread, iterate over all isolates and remove it from the isolate's thread registry. R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/664742f0162a13e0d60c65de0a713df8acd7d8e9

Patch Set 1 #

Patch Set 2 : #

Total comments: 31

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -215 lines) Patch
M runtime/vm/growable_array.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/vm/isolate.h View 2 chunks +0 lines, -5 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 2 chunks +14 lines, -18 lines 0 comments Download
M runtime/vm/profiler.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/thread.h View 1 2 2 chunks +33 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 9 chunks +59 lines, -14 lines 0 comments Download
M runtime/vm/thread_interrupter.h View 3 chunks +4 lines, -40 lines 0 comments Download
M runtime/vm/thread_interrupter.cc View 1 chunk +0 lines, -87 lines 0 comments Download
M runtime/vm/thread_interrupter_android.cc View 1 2 1 chunk +12 lines, -9 lines 0 comments Download
M runtime/vm/thread_interrupter_linux.cc View 1 2 1 chunk +12 lines, -9 lines 0 comments Download
M runtime/vm/thread_interrupter_macos.cc View 1 2 1 chunk +12 lines, -9 lines 0 comments Download
M runtime/vm/thread_interrupter_test.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/thread_interrupter_win.cc View 1 2 1 chunk +16 lines, -18 lines 0 comments Download
M runtime/vm/thread_registry.h View 1 2 2 chunks +21 lines, -1 line 0 comments Download
M runtime/vm/thread_registry.cc View 1 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Cutch
Some sort of miscommunication last night led me to believe I should do this CL. ...
5 years, 4 months ago (2015-08-20 14:32:03 UTC) #2
koda
Great work (and the overlap with my CL is unfortunate, but serves as validation). I'm ...
5 years, 4 months ago (2015-08-20 14:55:54 UTC) #3
koda
https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/thread.cc File runtime/vm/thread.cc (right): https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/thread.cc#newcode276 runtime/vm/thread.cc:276: thread_interrupt_callback_ = callback; On 2015/08/20 14:55:53, koda wrote: > ...
5 years, 4 months ago (2015-08-20 15:18:33 UTC) #4
koda
https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/thread.cc File runtime/vm/thread.cc (right): https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/thread.cc#newcode274 runtime/vm/thread.cc:274: void Thread::SetThreadInterrupter(ThreadInterruptCallback callback, Consider ASSERT that this is only ...
5 years, 4 months ago (2015-08-20 15:45:15 UTC) #5
Ivan Posva
LGTM with EntryIterator adjusted. Thanks! -Ivan https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/isolate.cc#newcode1775 runtime/vm/isolate.cc:1775: // TODO(johnmccutchan): Sample ...
5 years, 4 months ago (2015-08-20 18:00:10 UTC) #6
Cutch
https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1293253005/diff/20001/runtime/vm/isolate.cc#newcode1775 runtime/vm/isolate.cc:1775: // TODO(johnmccutchan): Sample all threads, not just the mutator ...
5 years, 4 months ago (2015-08-20 20:40:19 UTC) #7
Cutch
5 years, 4 months ago (2015-08-20 21:38:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
664742f0162a13e0d60c65de0a713df8acd7d8e9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698