diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-20 16:46:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 16:46:56 (GMT) |
commit | 6723e933c4d90a408cf3818362a0e4de6d84c932 (patch) | |
tree | fd3c18220235a2ad81a97a1a4728cb145c4fe4c8 /Include | |
parent | fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b (diff) | |
download | cpython-6723e933c4d90a408cf3818362a0e4de6d84c932.zip cpython-6723e933c4d90a408cf3818362a0e4de6d84c932.tar.gz cpython-6723e933c4d90a408cf3818362a0e4de6d84c932.tar.bz2 |
bpo-39946: Remove _PyThreadState_GetFrame (GH-19094)
Remove _PyRuntime.getframe hook and remove _PyThreadState_GetFrame
macro which was an alias to _PyRuntime.getframe. They were only
exposed by the internal C API. Remove also PyThreadFrameGetter type.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/pystate.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_pystate.h | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 96df0d9..de35296 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -179,8 +179,6 @@ PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *); PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void); -typedef struct _frame *(*PyThreadFrameGetter)(PyThreadState *self_); - /* Frame evaluation API */ typedef PyObject* (*_PyFrameEvalFunction)(PyThreadState *tstate, struct _frame *, int); diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h index 0073e20..50d906c 100644 --- a/Include/internal/pycore_pystate.h +++ b/Include/internal/pycore_pystate.h @@ -192,7 +192,6 @@ struct _gilstate_runtime_state { /* Assuming the current thread holds the GIL, this is the PyThreadState for the current thread. */ _Py_atomic_address tstate_current; - PyThreadFrameGetter getframe; /* The single PyInterpreterState used by this process' GILState implementation */ @@ -201,9 +200,6 @@ struct _gilstate_runtime_state { Py_tss_t autoTSSkey; }; -/* hook for PyEval_GetFrame(), requested for Psyco */ -#define _PyThreadState_GetFrame _PyRuntime.gilstate.getframe - /* Issue #26558: Flag to disable PyGILState_Check(). If set to non-zero, PyGILState_Check() always return 1. */ #define _PyGILState_check_enabled _PyRuntime.gilstate.check_enabled |