Skip to content

Commit 1607996

Browse files
Add a NEWS entry.
1 parent fff3356 commit 1607996

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Move GC runtime state from _PyRuntimeState to PyInterpreterState. As part
2+
of this, Python threads (created by the threading module) are marked as
3+
"deleted" earlier in finalization. That marker is how joining threads get
4+
unblocked. It was happening in `PyThreadState_Delete()` but now it will
5+
happen in `PyThreadState_Clear()`. This is necessary to ensure that the
6+
callback gets called *before* much interpreter/runtime finalization happens.
7+
(This change could impact daemon threads, but we already can't guarantee
8+
behavior for those once finalization starts.)

0 commit comments

Comments
 (0)