Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Wait for already running threads if a thread creation failed.
On memory-constrained systems (like cgroups limited processes) thread creation often fails. The code needs to wait for already running threads on error path; otherwise these threads can access deallocated memory (and cause a segfault or another crash).
- Loading branch information