Commit c22323c
authored
The deadlock only affected the free-threaded build and only occurred
when the GIL was enabled at runtime. The `Py_DECREF(old_name)` call
might temporarily release the GIL while holding the type seqlock.
Another thread may spin trying to acquire the seqlock while holding the
GIL.
The deadlock occurred roughly 1 in ~1,000 runs of `pool_in_threads.py`
from `test_multiprocessing_pool_circular_import`.
1 parent df93f5d commit c22323c
File tree
2 files changed
+9
-4
lines changed- Misc/NEWS.d/next/Core and Builtins
- Objects
2 files changed
+9
-4
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5169 | 5169 | | |
5170 | 5170 | | |
5171 | 5171 | | |
5172 | | - | |
| 5172 | + | |
5173 | 5173 | | |
5174 | 5174 | | |
5175 | 5175 | | |
| |||
5180 | 5180 | | |
5181 | 5181 | | |
5182 | 5182 | | |
5183 | | - | |
| 5183 | + | |
5184 | 5184 | | |
5185 | 5185 | | |
5186 | 5186 | | |
| |||
5200 | 5200 | | |
5201 | 5201 | | |
5202 | 5202 | | |
5203 | | - | |
| 5203 | + | |
5204 | 5204 | | |
5205 | 5205 | | |
5206 | 5206 | | |
| 5207 | + | |
| 5208 | + | |
5207 | 5209 | | |
5208 | 5210 | | |
5209 | 5211 | | |
| |||
5315 | 5317 | | |
5316 | 5318 | | |
5317 | 5319 | | |
5318 | | - | |
| 5320 | + | |
| 5321 | + | |
5319 | 5322 | | |
5320 | 5323 | | |
5321 | 5324 | | |
| |||
0 commit comments