cpython/Objects
Sam Gross 92564331de
[3.12] gh-113964: Don't prevent new threads until all non-daemon threads exit (GH-116677) (#117029)
Starting in Python 3.12, we prevented calling fork() and starting new threads
during interpreter finalization (shutdown). This has led to a number of
regressions and flaky tests. We should not prevent starting new threads
(or `fork()`) until all non-daemon threads exit and finalization starts in
earnest.

This changes the checks to use `_PyInterpreterState_GetFinalizing(interp)`,
which is set immediately before terminating non-daemon threads.

(cherry picked from commit 60e105c1c1)
2024-03-19 15:22:42 -04:00
..
clinic
stringlib
abstract.c
boolobject.c
bytearrayobject.c
bytes_methods.c
bytesobject.c
call.c
capsule.c
cellobject.c
classobject.c
codeobject.c
complexobject.c
descrobject.c
dictnotes.txt
dictobject.c
enumobject.c
exception_handling_notes.txt
exceptions.c
fileobject.c
floatobject.c [3.12] gh-116714: Handle errors correctly in PyFloat_GetInfo (GH-116715) (#116722) 2024-03-13 16:40:38 +03:00
frame_layout.md
frameobject.c
funcobject.c
genericaliasobject.c
genobject.c [3.12] gh-100762: Fix optimization in gen_close (GH-111069) (#115818) 2024-02-22 14:05:59 +00:00
interpreteridobject.c
iterobject.c
listobject.c
listsort.txt
lnotab_notes.txt
locations.md
longobject.c [3.12] gh-110819: Fix ‘kind’ may be used uninitialized warning in longobject (GH-116599) (#116648) 2024-03-12 11:09:15 +00:00
memoryobject.c
methodobject.c
moduleobject.c
namespaceobject.c
object.c
object_layout.md
object_layout_312.gv
object_layout_312.png
object_layout_full_312.gv
object_layout_full_312.png
obmalloc.c
odictobject.c
picklebufobject.c
rangeobject.c
README
setobject.c
sliceobject.c
structseq.c
tupleobject.c
typeobject.c [3.12] gh-116296: Fix refleak in reduce_newobj() corner case (GH-116297) (#116299) 2024-03-04 10:04:44 +00:00
typeslots.inc
typeslots.py
typevarobject.c
unicodectype.c
unicodeobject.c [3.12] gh-113964: Don't prevent new threads until all non-daemon threads exit (GH-116677) (#117029) 2024-03-19 15:22:42 -04:00
unicodetype_db.h
unionobject.c
weakrefobject.c

Source files for various builtin objects