DescriptionHack around TLS destructors firing after the process exits round 2
- 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/791941a1707d999d0945f9419103ace9a4db3f09
Patch Set 1 #
Total comments: 1
Messages
Total messages: 4 (0 generated)
|