diff options
author | Mark Shannon <mark@hotpy.org> | 2023-08-17 10:16:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 10:16:03 (GMT) |
commit | 006e44f9502308ec3d14424ad8bd774046f2be8e (patch) | |
tree | 91ab71678a0fb5f5ba410c371f28ded8a1c82d0d /Include/internal/pycore_runtime_init.h | |
parent | 33e6e3fec02ff3035dec52692542d3dd10124bef (diff) | |
download | cpython-006e44f9502308ec3d14424ad8bd774046f2be8e.zip cpython-006e44f9502308ec3d14424ad8bd774046f2be8e.tar.gz cpython-006e44f9502308ec3d14424ad8bd774046f2be8e.tar.bz2 |
GH-108035: Remove the `_PyCFrame` struct as it is no longer needed for performance. (GH-108036)
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index e89d368..ea29c69 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -45,7 +45,7 @@ extern PyTypeObject _PyExc_MemoryError; .prev = offsetof(PyThreadState, prev), \ .next = offsetof(PyThreadState, next), \ .interp = offsetof(PyThreadState, interp), \ - .cframe = offsetof(PyThreadState, cframe), \ + .current_frame = offsetof(PyThreadState, current_frame), \ .thread_id = offsetof(PyThreadState, thread_id), \ .native_thread_id = offsetof(PyThreadState, native_thread_id), \ }, \ @@ -56,10 +56,6 @@ extern PyTypeObject _PyExc_MemoryError; .localsplus = offsetof(_PyInterpreterFrame, localsplus), \ .owner = offsetof(_PyInterpreterFrame, owner), \ }, \ - .cframe = { \ - .current_frame = offsetof(_PyCFrame, current_frame), \ - .previous = offsetof(_PyCFrame, previous), \ - }, \ .code_object = { \ .filename = offsetof(PyCodeObject, co_filename), \ .name = offsetof(PyCodeObject, co_name), \ |