• Victor Stinner's avatar
    bpo-36710: Add 'ceval' local variable to ceval.c (GH-12934) · 09532fee
    Victor Stinner yazdı
    Add "struct _ceval_runtime_state *ceval = &_PyRuntime.ceval;" local
    variables to function to better highlight the dependency on the
    global variable _PyRuntime and to point directly to _PyRuntime.ceval
    field rather than on the larger _PyRuntime.
    
    Changes:
    
    * Add _PyRuntimeState_GetThreadState(runtime) macro.
    * Add _PyEval_AddPendingCall(ceval, ...) and
      _PyThreadState_Swap(gilstate, ...) functions.
    * _PyThreadState_GET() macro now calls
      _PyRuntimeState_GetThreadState() using &_PyRuntime.
    * Add 'ceval' parameter to COMPUTE_EVAL_BREAKER(),
      SIGNAL_PENDING_SIGNALS(), _PyEval_SignalAsyncExc(),
      _PyEval_SignalReceived() and _PyEval_FiniThreads() macros and
      functions.
    * Add 'tstate' parameter to call_function(), do_call_core() and
      do_raise().
    * Add 'runtime' parameter to _Py_CURRENTLY_FINALIZING(),
      _Py_FinishPendingCalls() and _PyThreadState_DeleteExcept()
      macros and functions.
    * Declare 'runtime', 'tstate', 'ceval' and 'eval_breaker' variables
      as constant.
    09532fee
Adı
Son kayıt (commit)
Son güncelleme
.azure-pipelines Loading commit data...
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...