Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use static inline function Py_EnterRecursiveCall() #91988

Merged
merged 1 commit into from
May 4, 2022
Merged

Use static inline function Py_EnterRecursiveCall() #91988

merged 1 commit into from
May 4, 2022

Commits on May 4, 2022

  1. Use static inline function Py_EnterRecursiveCall()

    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.c: Rename Py_EnterRecursiveCall() to
      _Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() and
      _Py_LeaveRecursiveCall()
    vstinner committed May 4, 2022
    Configuration menu
    Copy the full SHA
    7b36c55 View commit details
    Browse the repository at this point in the history