]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39984: _PyThreadState_DeleteCurrent() takes tstate (GH-19051)
authorVictor Stinner <vstinner@python.org>
Wed, 18 Mar 2020 01:26:04 +0000 (02:26 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2020 01:26:04 +0000 (02:26 +0100)
commit23ef89db7ae46d160650263cc80479c2ed6693fb
tree10113d5c3774882bf9f22ad91f863f07e907717f
parentd7fabc116269e4650a684eb04f9ecd84421aa247
bpo-39984: _PyThreadState_DeleteCurrent() takes tstate (GH-19051)

* _PyThreadState_DeleteCurrent() now takes tstate rather than
  runtime.
* Add ensure_tstate_not_null() helper to pystate.c.
* Add _PyEval_ReleaseLock() function.
* _PyThreadState_DeleteCurrent() now calls
  _PyEval_ReleaseLock(tstate) and frees PyThreadState memory after
  this call, not before.
* PyGILState_Release(): rename "tcur" variable to "tstate".
Include/internal/pycore_ceval.h
Include/internal/pycore_pylifecycle.h
Lib/test/test_capi.py
Modules/_threadmodule.c
Python/ceval.c
Python/pystate.c