bpo-36854: Clear the current thread later (GH-17279)
Clear the current thread later in the Python finalization. * The PyInterpreterState_Delete() function is now responsible to call PyThreadState_Swap(NULL). * The tstate_delete_common() function is now responsible to clear the "autoTSSKey" thread local storage and it only clears it once the thread state is fully cleared. It allows to still get the current thread from TSS in tstate_delete_common().
V
Victor Stinner committed
9da7430675ceaeae5abeb9c9f7cd552b71b3a93a
Parent: d51a363
Committed by GitHub <noreply@github.com>
on 11/20/2019, 10:17:17 AM