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

Issue 11637014: Fix Windows XP process handling. (Closed)

Created:
8 years ago by Mads Ager (google)
Modified:
8 years ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix Windows XP process handling. ProcThreadAttributeLists are not supported on Windows XP so we need to dynamically load the functions and check that they exist. This of course means that file descriptors are inherited on XP, but we knew that already. R=sgjesse@google.com BUG=dartbug.com/7492 Committed: https://code.google.com/p/dart/source/detail?r=16309

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -39 lines) Patch
M runtime/bin/process_win.cc View 1 4 chunks +86 lines, -39 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (google)
8 years ago (2012-12-19 09:30:19 UTC) #1
Søren Gjesse
LGTM, with threading issue addressed. https://codereview.chromium.org/11637014/diff/1/runtime/bin/process_win.cc File runtime/bin/process_win.cc (right): https://codereview.chromium.org/11637014/diff/1/runtime/bin/process_win.cc#newcode340 runtime/bin/process_win.cc:340: if (init_proc_thread_attr_list == NULL) ...
8 years ago (2012-12-19 09:51:51 UTC) #2
Mads Ager (google)
8 years ago (2012-12-19 10:00:54 UTC) #3
https://codereview.chromium.org/11637014/diff/1/runtime/bin/process_win.cc
File runtime/bin/process_win.cc (right):

https://codereview.chromium.org/11637014/diff/1/runtime/bin/process_win.cc#ne...
runtime/bin/process_win.cc:340: if (init_proc_thread_attr_list == NULL) {
On 2012/12/19 09:51:51, Søren Gjesse wrote:
> On XP this will try to load InitializeProcThreadAttributeList for every call
to
> EnsureInitialized. Maybe thats not a big deal.

Fixed as part of the below.

https://codereview.chromium.org/11637014/diff/1/runtime/bin/process_win.cc#ne...
runtime/bin/process_win.cc:341: init_proc_thread_attr_list =
reinterpret_cast<InitProcThreadAttrListFn>(
On 2012/12/19 09:51:51, Søren Gjesse wrote:
> As this could be called by several threads at the same time we should probably
> use some locking . On 32-bit this is not needed, but I am not sure about
64-bit.
> Of cause it will be one in a million...

Thanks. I put in locking.

Powered by Google App Engine
This is Rietveld 408576698