Lines Matching defs:interp

228     assert(!_PyMem_IsPtrFreed(tstate->interp));
238 COMPUTE_EVAL_BREAKER(PyInterpreterState *interp,
245 && _Py_ThreadCanHandleSignals(interp))
253 SET_GIL_DROP_REQUEST(PyInterpreterState *interp)
255 struct _ceval_state *ceval2 = &interp->ceval;
262 RESET_GIL_DROP_REQUEST(PyInterpreterState *interp)
264 struct _ceval_runtime_state *ceval = &interp->runtime->ceval;
265 struct _ceval_state *ceval2 = &interp->ceval;
267 COMPUTE_EVAL_BREAKER(interp, ceval, ceval2);
272 SIGNAL_PENDING_CALLS(PyInterpreterState *interp)
274 struct _ceval_runtime_state *ceval = &interp->runtime->ceval;
275 struct _ceval_state *ceval2 = &interp->ceval;
277 COMPUTE_EVAL_BREAKER(interp, ceval, ceval2);
282 UNSIGNAL_PENDING_CALLS(PyInterpreterState *interp)
284 struct _ceval_runtime_state *ceval = &interp->runtime->ceval;
285 struct _ceval_state *ceval2 = &interp->ceval;
287 COMPUTE_EVAL_BREAKER(interp, ceval, ceval2);
292 SIGNAL_PENDING_SIGNALS(PyInterpreterState *interp, int force)
294 struct _ceval_runtime_state *ceval = &interp->runtime->ceval;
295 struct _ceval_state *ceval2 = &interp->ceval;
302 COMPUTE_EVAL_BREAKER(interp, ceval, ceval2);
308 UNSIGNAL_PENDING_SIGNALS(PyInterpreterState *interp)
310 struct _ceval_runtime_state *ceval = &interp->runtime->ceval;
311 struct _ceval_state *ceval2 = &interp->ceval;
313 COMPUTE_EVAL_BREAKER(interp, ceval, ceval2);
318 SIGNAL_ASYNC_EXC(PyInterpreterState *interp)
320 struct _ceval_state *ceval2 = &interp->ceval;
327 UNSIGNAL_ASYNC_EXC(PyInterpreterState *interp)
329 struct _ceval_runtime_state *ceval = &interp->runtime->ceval;
330 struct _ceval_state *ceval2 = &interp->ceval;
332 COMPUTE_EVAL_BREAKER(interp, ceval, ceval2);
366 if (!_Py_IsMainInterpreter(tstate->interp)) {
373 struct _gil_runtime_state *gil = &tstate->interp->runtime->ceval.gil;
386 _PyEval_FiniGIL(PyInterpreterState *interp)
388 if (!_Py_IsMainInterpreter(interp)) {
395 struct _gil_runtime_state *gil = &interp->runtime->ceval.gil;
439 struct _ceval_state *ceval2 = &tstate->interp->ceval;
446 struct _ceval_runtime_state *ceval = &tstate->interp->runtime->ceval;
447 struct _ceval_state *ceval2 = &tstate->interp->ceval;
458 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate;
469 _PyRuntimeState *runtime = tstate->interp->runtime;
475 struct _ceval_state *ceval2 = &tstate->interp->ceval;
486 _PyRuntimeState *runtime = tstate->interp->runtime;
496 struct _pending_calls *pending = &tstate->interp->ceval.pending;
511 _PyEval_SignalAsyncExc(PyInterpreterState *interp)
513 SIGNAL_ASYNC_EXC(interp);
524 struct _ceval_state *ceval2 = &tstate->interp->ceval;
537 struct _gilstate_runtime_state *gilstate = &tstate->interp->runtime->gilstate;
565 _PyEval_SignalReceived(PyInterpreterState *interp)
582 SIGNAL_PENDING_SIGNALS(interp, force);
622 _PyEval_AddPendingCall(PyInterpreterState *interp,
625 struct _pending_calls *pending = &interp->ceval.pending;
636 SIGNAL_PENDING_CALLS(interp);
660 PyInterpreterState *interp;
662 interp = tstate->interp;
666 interp = _PyInterpreterState_Main();
668 return _PyEval_AddPendingCall(interp, func, arg);
675 if (!_Py_ThreadCanHandleSignals(tstate->interp)) {
679 UNSIGNAL_PENDING_SIGNALS(tstate->interp);
682 SIGNAL_PENDING_SIGNALS(tstate->interp, 0);
689 make_pending_calls(PyInterpreterState *interp)
705 UNSIGNAL_PENDING_CALLS(interp);
709 struct _pending_calls *pending = &interp->ceval.pending;
734 SIGNAL_PENDING_CALLS(interp);
744 struct _pending_calls *pending = &tstate->interp->ceval.pending;
750 if (make_pending_calls(tstate->interp) < 0) {
776 res = make_pending_calls(tstate->interp);
814 PyInterpreterState *interp = _PyInterpreterState_GET();
815 return interp->ceval.recursion_limit;
821 PyInterpreterState *interp = _PyInterpreterState_GET();
822 interp->ceval.recursion_limit = new_limit;
823 for (PyThreadState *p = interp->threads.head; p != NULL; p = p->next) {
837 if (depth < tstate->interp->ceval.recursion_limit) {
838 tstate->recursion_limit = tstate->interp->ceval.recursion_limit;
1194 struct _ceval_state *ceval2 = &tstate->interp->ceval;
1196 if (make_pending_calls(tstate->interp) != 0) {
1222 UNSIGNAL_ASYNC_EXC(tstate->interp);
1236 COMPUTE_EVAL_BREAKER(tstate->interp, ceval, ceval2);
1652 _Py_atomic_int * const eval_breaker = &tstate->interp->ceval.eval_breaker;
2236 DEOPT_IF(tstate->interp->eval_frame, BINARY_SUBSCR);
4743 if (Py_TYPE(function) == &PyFunction_Type && tstate->interp->eval_frame == NULL) {
4843 DEOPT_IF(tstate->interp->eval_frame, CALL);
4877 DEOPT_IF(tstate->interp->eval_frame, CALL);
5127 PyInterpreterState *interp = _PyInterpreterState_GET();
5128 DEOPT_IF(callable != interp->callable_cache.len, PRECALL);
5157 PyInterpreterState *interp = _PyInterpreterState_GET();
5158 DEOPT_IF(callable != interp->callable_cache.isinstance, PRECALL);
5187 PyInterpreterState *interp = _PyInterpreterState_GET();
5188 DEOPT_IF(callable != interp->callable_cache.list_append, PRECALL);
7146 return tstate->interp->builtins;
7424 if (import_func == tstate->interp->import_func) {
7871 PyInterpreterState *interp = _PyInterpreterState_GET();
7874 if (interp->co_extra_user_count == MAX_CO_EXTRA_USERS - 1) {
7877 new_index = interp->co_extra_user_count++;
7878 interp->co_extra_freefuncs[new_index] = free;