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

Issue 1416063005: Hack around TLS destructors firing after the process exits (Closed)

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

Hack around TLS destructors firing after the process exits - When a process exits on Windows, Windows closes all handles - Our mutexes use a handle to a semaphore for locking - If our TLS destructors need to take a lock during thread exit (but after process has started to shutdown) we will deadlock waiting on a handle that's been closed. This works around the problem by not running tls destructors when we are exiting the process. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/237702c6b5e2b312cf5394e17396744231742374

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M runtime/bin/platform_win.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/os_thread_win.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/thread_interrupter.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Cutch
5 years, 1 month ago (2015-11-03 22:45:16 UTC) #3
zra
lgtm Could you also add a note for posterity in the CL description explaining why ...
5 years, 1 month ago (2015-11-03 22:55:13 UTC) #4
Cutch
https://codereview.chromium.org/1416063005/diff/1/runtime/bin/platform_win.cc File runtime/bin/platform_win.cc (right): https://codereview.chromium.org/1416063005/diff/1/runtime/bin/platform_win.cc#newcode18 runtime/bin/platform_win.cc:18: // Defined in os_thread_win.cc On 2015/11/03 22:55:12, zra wrote: ...
5 years, 1 month ago (2015-11-03 23:02:24 UTC) #6
Cutch
5 years, 1 month ago (2015-11-03 23:02:43 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
237702c6b5e2b312cf5394e17396744231742374 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698