SIGN IN SIGN UP

gh-59956: Allow the "Trashcan" Mechanism to Work Without a Thread State (gh-101209)

We've factored out a struct from the two PyThreadState fields. This accomplishes two things:

* make it clear that the trashcan-related code doesn't need any other parts of PyThreadState
* allows us to use the trashcan mechanism even when there isn't a "current" thread state

We still expect the caller to hold the GIL.

https://github.com/python/cpython/issues/59956
E
Eric Snow committed
7b20a0f55a16b3e2d274cc478e4d04bd8a836a9f
Parent: 984387f
Committed by GitHub <noreply@github.com> on 1/23/2023, 3:30:20 PM