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

Issue 1978153002: Uses an open thread handle as the ThreadJoinId on Windows. (Closed)

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

Description

Uses an open thread handle as the ThreadJoinId on Windows. Also: - Reaps exited threads in the thread pool before putting a thread on the idle list so that a new arriving task isn't blocked on a supposedly idle thread in the middle of a join. - Stops trying to join eventhandler threads on Windows. Now that we're using the correct exit() call, we probably don't have to worry about exit code pollution, so joining the threads is unnecessary. related #26400 R=asiva@google.com, iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/5f59a954f816ad0f46472eb4da05e714dbb7e117

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : Address comments #

Patch Set 5 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -121 lines) Patch
M runtime/bin/eventhandler_win.cc View 1 3 chunks +6 lines, -16 lines 0 comments Download
M runtime/bin/thread.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/thread_android.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M runtime/bin/thread_linux.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M runtime/bin/thread_macos.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M runtime/bin/thread_win.cc View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 5 chunks +1 line, -8 lines 0 comments Download
M runtime/vm/os_thread.h View 1 2 3 4 chunks +11 lines, -9 lines 0 comments Download
M runtime/vm/os_thread.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M runtime/vm/os_thread_android.cc View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M runtime/vm/os_thread_linux.cc View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M runtime/vm/os_thread_macos.cc View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M runtime/vm/os_thread_win.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/os_thread_win.cc View 1 2 3 2 chunks +16 lines, -18 lines 0 comments Download
M runtime/vm/thread_interrupter.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/thread_pool.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/thread_pool.cc View 1 2 3 5 chunks +28 lines, -9 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 3 4 3 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
zra
4 years, 7 months ago (2016-05-16 16:05:24 UTC) #5
zra
Modified ThreadPool::SetIdleAndReapExited() as discussed offline.
4 years, 7 months ago (2016-05-16 16:58:37 UTC) #6
Ivan Posva
https://codereview.chromium.org/1978153002/diff/40001/runtime/vm/os_thread.h File runtime/vm/os_thread.h (right): https://codereview.chromium.org/1978153002/diff/40001/runtime/vm/os_thread.h#newcode210 runtime/vm/os_thread.h:210: // only once per-thread in the constructor for an ...
4 years, 7 months ago (2016-05-16 17:13:14 UTC) #7
Ivan Posva
LGTM -ip
4 years, 7 months ago (2016-05-16 17:30:16 UTC) #8
siva
DBC https://codereview.chromium.org/1978153002/diff/40001/runtime/bin/thread_win.cc File runtime/bin/thread_win.cc (right): https://codereview.chromium.org/1978153002/diff/40001/runtime/bin/thread_win.cc#newcode108 runtime/bin/thread_win.cc:108: } The Thread::Join function doesn't seem to be ...
4 years, 7 months ago (2016-05-16 17:59:28 UTC) #9
zra
https://codereview.chromium.org/1978153002/diff/40001/runtime/bin/thread_win.cc File runtime/bin/thread_win.cc (right): https://codereview.chromium.org/1978153002/diff/40001/runtime/bin/thread_win.cc#newcode108 runtime/bin/thread_win.cc:108: } On 2016/05/16 17:59:27, siva wrote: > The Thread::Join ...
4 years, 7 months ago (2016-05-16 20:32:55 UTC) #10
zra
ptal
4 years, 7 months ago (2016-05-17 15:43:04 UTC) #11
siva
lgtm
4 years, 7 months ago (2016-05-17 17:56:51 UTC) #12
zra
4 years, 7 months ago (2016-05-17 20:18:18 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
5f59a954f816ad0f46472eb4da05e714dbb7e117 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698