[3.13] gh-109746: Make _thread.start_new_thread delete state of new thread on its startup failure (GH-109761) (GH-127171)
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. (cherry picked from commit ca3ea9ad05c3d876a58463595e5b4228fda06936) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
S
Serhiy Storchaka committed
75ef92da291247fd9d21ec26bd22bf8055b5f330
Parent: 950daf8
Committed by GitHub <noreply@github.com>
on 11/22/2024, 7:55:44 PM