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

Issue 1410293006: Use ExitProcess on Windows. (Closed)

Created:
5 years, 1 month ago by zra
Modified:
5 years, 1 month ago
Reviewers:
Cutch, 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

Use ExitProcess on Windows. Even after joining threads, it is still possible for the exit code to be polluted. NaCL uses ExitProcess to avoid this problem: https://code.google.com/p/chromium/codesearch#chromium/src/native_client/src/shared/platform/win/nacl_exit.c This change also cleans up thread local storage for the last Thread. BUG= R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/3563dc0fb0f9a597fe8119313aa788df6a2e9efb

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : Add noreturn to Platform::Exit" #

Total comments: 2

Patch Set 6 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -15 lines) Patch
M runtime/bin/main.cc View 1 2 3 4 5 7 chunks +11 lines, -11 lines 0 comments Download
M runtime/bin/platform.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/platform_android.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/platform_linux.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/platform_macos.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/platform_win.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/process.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/thread_win.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/thread_win.cc View 1 1 chunk +12 lines, -2 lines 0 comments Download
M runtime/platform/globals.h View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
zra
5 years, 1 month ago (2015-10-28 20:20:33 UTC) #2
zra
+johnmccutchan for change to Thread::Shutdown()
5 years, 1 month ago (2015-10-28 20:21:22 UTC) #4
Cutch
https://codereview.chromium.org/1410293006/diff/40001/runtime/bin/platform_win.cc File runtime/bin/platform_win.cc (right): https://codereview.chromium.org/1410293006/diff/40001/runtime/bin/platform_win.cc#newcode109 runtime/bin/platform_win.cc:109: // On Windows we use ExitProcess so that threads ...
5 years, 1 month ago (2015-10-28 20:33:15 UTC) #5
zra
https://codereview.chromium.org/1410293006/diff/40001/runtime/bin/platform_win.cc File runtime/bin/platform_win.cc (right): https://codereview.chromium.org/1410293006/diff/40001/runtime/bin/platform_win.cc#newcode109 runtime/bin/platform_win.cc:109: // On Windows we use ExitProcess so that threads ...
5 years, 1 month ago (2015-10-28 21:40:04 UTC) #6
Ivan Posva
LGTM -ip https://codereview.chromium.org/1410293006/diff/80001/runtime/platform/globals.h File runtime/platform/globals.h (right): https://codereview.chromium.org/1410293006/diff/80001/runtime/platform/globals.h#newcode239 runtime/platform/globals.h:239: #define DART_NORETURN __attribute__((noreturn)) Why?
5 years, 1 month ago (2015-10-29 23:14:09 UTC) #7
zra
https://codereview.chromium.org/1410293006/diff/80001/runtime/platform/globals.h File runtime/platform/globals.h (right): https://codereview.chromium.org/1410293006/diff/80001/runtime/platform/globals.h#newcode239 runtime/platform/globals.h:239: #define DART_NORETURN __attribute__((noreturn)) On 2015/10/29 23:14:09, Ivan Posva wrote: ...
5 years, 1 month ago (2015-10-30 06:09:46 UTC) #8
zra
5 years, 1 month ago (2015-10-30 06:35:50 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
3563dc0fb0f9a597fe8119313aa788df6a2e9efb.

Powered by Google App Engine
This is Rietveld 408576698