mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-128360: Add _Py_AssertHoldsTstate
as assertion for holding a thread state (#128361)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
c6b570e5e3
commit
4d0a6595a0
11 changed files with 48 additions and 32 deletions
|
@ -2897,7 +2897,6 @@ _PyInterpreterState_GetConfigCopy(PyConfig *config)
|
|||
const PyConfig*
|
||||
_Py_GetConfig(void)
|
||||
{
|
||||
assert(PyGILState_Check());
|
||||
PyThreadState *tstate = current_fast_get();
|
||||
_Py_EnsureTstateNotNULL(tstate);
|
||||
return _PyInterpreterState_GetConfig(tstate->interp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue