Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the task from the task list at the end of task destruction (#1…
…1117) Summary: Pull Request resolved: #11117 Previously the running task counter is decremented as part of member destruction. Recent changes to track the running task in a global list for stats tracking but we remove it from the list at the entry of the task destructor so there is race condition between the task destruction thread running at the background and the test shutdown thread. The fix is to move the task list remove at the end of task destructor. Also note that we manually destroy class members in task destructor so it is fine to remove the task list in destructor. Reviewed By: spershin Differential Revision: D63546925 fbshipit-source-id: 1fe0c8f087a06138035b4d4ef16848faf87d652d
- Loading branch information