SIGN IN SIGN UP

[3.12] gh-109746: Make _thread.start_new_thread delete state of new thread on its startup failure (GH-109761) (GH-127173)

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
f1e74248025b36a0c5d12f72c4ab713f4682f523
Parent: 2964898
Committed by GitHub <noreply@github.com> on 11/22/2024, 7:56:39 PM