-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suspend LWPs, then threads, rather than vice versa
By doing this, we ensure that at the point we start enumerating threads, the LWPs for those threads are already stopped, so the threads are not racing us to modify the thread list as we read it. This stops a potential hang where we end up in a loop iterating over a cycle in the thread structures for already removed threads.
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters