mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
GH-108035: Remove the _PyCFrame
struct as it is no longer needed for performance. (GH-108036)
This commit is contained in:
parent
33e6e3fec0
commit
006e44f950
21 changed files with 66 additions and 103 deletions
|
@ -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), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue