-
- Downloads
Use static inline function Py_EnterRecursiveCall() (#91988)
Currently, calling Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() may use a function call or a static inline function call, depending if the internal pycore_ceval.h header file is included or not. Use a different name for the static inline function to ensure that the static inline function is always used in Python internals for best performance. Similar approach than PyThreadState_GET() (function call) and _PyThreadState_GET() (static inline function). * Rename _Py_EnterRecursiveCall() to _Py_EnterRecursiveCallTstate() * Rename _Py_LeaveRecursiveCall() to _Py_LeaveRecursiveCallTstate() * pycore_ceval.h: Rename Py_EnterRecursiveCall() to _Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() and _Py_LeaveRecursiveCall()
Showing
- Include/internal/pycore_ceval.h 8 additions, 12 deletionsInclude/internal/pycore_ceval.h
- Modules/_ctypes/_ctypes.c 3 additions, 2 deletionsModules/_ctypes/_ctypes.c
- Modules/_json.c 13 additions, 12 deletionsModules/_json.c
- Modules/_pickle.c 12 additions, 11 deletionsModules/_pickle.c
- Objects/abstract.c 11 additions, 11 deletionsObjects/abstract.c
- Objects/bytesobject.c 1 addition, 1 deletionObjects/bytesobject.c
- Objects/call.c 4 additions, 4 deletionsObjects/call.c
- Objects/descrobject.c 9 additions, 9 deletionsObjects/descrobject.c
- Objects/exceptions.c 6 additions, 5 deletionsObjects/exceptions.c
- Objects/methodobject.c 7 additions, 7 deletionsObjects/methodobject.c
- Objects/object.c 8 additions, 8 deletionsObjects/object.c
- Parser/asdl_c.py 6 additions, 5 deletionsParser/asdl_c.py
- Python/Python-ast.c 416 additions, 415 deletionsPython/Python-ast.c
- Python/ceval.c 15 additions, 15 deletionsPython/ceval.c
- Python/pythonrun.c 5 additions, 4 deletionsPython/pythonrun.c
Loading
Please register or sign in to comment