DescriptionHack 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 : #
Messages
Total messages: 7 (3 generated)
|