Commit fa67e46
committed
gh-153852: Assert thread list non-empty only after stopping the world
Move the threads.head assert in handle_thread_shutdown_exception to after
_PyEval_StopTheWorld so it does not race tstate_delete_common (TSAN-0034).1 parent f5f5059 commit fa67e46
2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Python
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3827 | 3827 | | |
3828 | 3828 | | |
3829 | 3829 | | |
3830 | | - | |
3831 | 3830 | | |
| 3831 | + | |
3832 | 3832 | | |
3833 | 3833 | | |
3834 | 3834 | | |
| |||
0 commit comments