We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff3356 commit 1607996Copy full SHA for 1607996
Misc/NEWS.d/next/Core and Builtins/2019-05-09-11-37-28.bpo-36854.dpBVTw.rst
@@ -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