gh-109746: Make _thread.start_new_thread delete state of new thread on its startup failure (GH-109761)
If Python fails to start newly created thread due to failure of underlying PyThread_start_new_thread() call, its state should be removed from interpreter' thread states list to avoid its double cleanup. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
R
Radislav Chugunov committed
ca3ea9ad05c3d876a58463595e5b4228fda06936
Parent: a264637
Committed by GitHub <noreply@github.com>
on 11/22/2024, 7:20:07 PM