/third_party/python/Python/ |
H A D | errors.c | 27 _PyErr_FormatV(PyThreadState *tstate, PyObject *exception, 32 _PyErr_Restore(PyThreadState *tstate, PyObject *type, PyObject *value, in _PyErr_Restore() argument 46 oldtype = tstate->curexc_type; in _PyErr_Restore() 47 oldvalue = tstate->curexc_value; in _PyErr_Restore() 48 oldtraceback = tstate->curexc_traceback; in _PyErr_Restore() 50 tstate->curexc_type = type; in _PyErr_Restore() 51 tstate->curexc_value = value; in _PyErr_Restore() 52 tstate->curexc_traceback = traceback; in _PyErr_Restore() 62 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_Restore() local 63 _PyErr_Restore(tstate, typ in PyErr_Restore() 68 _PyErr_GetTopmostException(PyThreadState *tstate) _PyErr_GetTopmostException() argument 108 _PyErr_SetObject(PyThreadState *tstate, PyObject *exception, PyObject *value) _PyErr_SetObject() argument 188 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetObject() local 198 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_SetKeyError() local 209 _PyErr_SetNone(PyThreadState *tstate, PyObject *exception) _PyErr_SetNone() argument 218 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetNone() local 224 _PyErr_SetString(PyThreadState *tstate, PyObject *exception, const char *string) _PyErr_SetString() argument 235 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetString() local 246 PyThreadState *tstate = _PyThreadState_GET(); PyErr_Occurred() local 284 _PyErr_ExceptionMatches(PyThreadState *tstate, PyObject *exc) _PyErr_ExceptionMatches() argument 293 PyThreadState *tstate = _PyThreadState_GET(); PyErr_ExceptionMatches() local 309 _PyErr_NormalizeException(PyThreadState *tstate, PyObject **exc, PyObject **val, PyObject **tb) _PyErr_NormalizeException() argument 418 PyThreadState *tstate = _PyThreadState_GET(); PyErr_NormalizeException() local 424 _PyErr_Fetch(PyThreadState *tstate, PyObject **p_type, PyObject **p_value, PyObject **p_traceback) _PyErr_Fetch() argument 440 PyThreadState *tstate = _PyThreadState_GET(); PyErr_Fetch() local 446 _PyErr_Clear(PyThreadState *tstate) _PyErr_Clear() argument 455 PyThreadState *tstate = _PyThreadState_GET(); PyErr_Clear() local 488 _PyErr_GetExcInfo(PyThreadState *tstate, PyObject **p_type, PyObject **p_value, PyObject **p_traceback) _PyErr_GetExcInfo() argument 503 _PyErr_GetHandledException(PyThreadState *tstate) _PyErr_GetHandledException() argument 516 PyThreadState *tstate = _PyThreadState_GET(); PyErr_GetHandledException() local 521 _PyErr_SetHandledException(PyThreadState *tstate, PyObject *exc) _PyErr_SetHandledException() argument 529 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetHandledException() local 536 PyThreadState *tstate = _PyThreadState_GET(); PyErr_GetExcInfo() local 621 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_ChainStackItem() local 659 _PyErr_FormatVFromCause(PyThreadState *tstate, PyObject *exception, const char *format, va_list vargs) _PyErr_FormatVFromCause() argument 687 _PyErr_FormatFromCauseTstate(PyThreadState *tstate, PyObject *exception, const char *format, ...) _PyErr_FormatFromCauseTstate() argument 704 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_FormatFromCause() local 721 PyThreadState *tstate = _PyThreadState_GET(); PyErr_BadArgument() local 728 _PyErr_NoMemory(PyThreadState *tstate) _PyErr_NoMemory() argument 743 PyThreadState *tstate = _PyThreadState_GET(); PyErr_NoMemory() local 756 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetFromErrnoWithFilenameObjects() local 884 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetExcFromWindowsErrWithFilenameObjects() local 990 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SetImportErrorSubclass() local 1048 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_BadInternalCall() local 1061 PyThreadState *tstate = _PyThreadState_GET(); PyErr_BadInternalCall() local 1069 _PyErr_FormatV(PyThreadState *tstate, PyObject *exception, const char *format, va_list vargs) _PyErr_FormatV() argument 1089 PyThreadState *tstate = _PyThreadState_GET(); PyErr_FormatV() local 1095 _PyErr_Format(PyThreadState *tstate, PyObject *exception, const char *format, ...) _PyErr_Format() argument 1113 PyThreadState *tstate = _PyThreadState_GET(); PyErr_Format() local 1129 PyThreadState *tstate = _PyThreadState_GET(); PyErr_NewException() local 1269 make_unraisable_hook_args(PyThreadState *tstate, PyObject *exc_type, PyObject *exc_value, PyObject *exc_tb, PyObject *err_msg, PyObject *obj) make_unraisable_hook_args() argument 1311 write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type, PyObject *exc_value, PyObject *exc_tb, PyObject *err_msg, PyObject *obj, PyObject *file) write_unraisable_exc_file() argument 1431 write_unraisable_exc(PyThreadState *tstate, PyObject *exc_type, PyObject *exc_value, PyObject *exc_tb, PyObject *err_msg, PyObject *obj) write_unraisable_exc() argument 1454 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_WriteUnraisableDefaultHook() local 1491 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_WriteUnraisableMsg() local 1614 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SyntaxLocationObjectEx() local 1732 PyThreadState *tstate = _PyThreadState_GET(); PyErr_SyntaxLocationEx() local 1754 err_programtext(PyThreadState *tstate, FILE *fp, int lineno, const char* encoding) err_programtext() argument 1818 PyThreadState *tstate = _PyThreadState_GET(); _PyErr_ProgramDecodedTextObject() local [all...] |
H A D | pystate.c | 48 static void _PyThreadState_Delete(PyThreadState *tstate, int check_current); 223 struct _gilstate_runtime_state *gilstate, PyThreadState* tstate); 305 PyThreadState *tstate = _PyThreadState_GET(); in PyInterpreterState_New() local 307 /* tstate is NULL when Py_InitializeFromConfig() calls in PyInterpreterState_New() 309 if (_PySys_Audit(tstate, "cpython.PyInterpreterState_New", NULL) < 0) { in PyInterpreterState_New() 315 if (tstate != NULL) { in PyInterpreterState_New() 316 _PyErr_NoMemory(tstate); in PyInterpreterState_New() 321 /* Don't get runtime from tstate since tstate can be NULL. */ in PyInterpreterState_New() 365 if (tstate ! in PyInterpreterState_New() 391 interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate) interpreter_clear() argument 470 _PyInterpreterState_Clear(PyThreadState *tstate) _PyInterpreterState_Clear() argument 479 PyThreadState *tstate; zapthreads() local 541 PyThreadState *tstate = _PyThreadState_Swap(gilstate, NULL); _PyInterpreterState_DeleteExceptMain() local 580 PyThreadState *tstate = _PyThreadState_GET(); PyInterpreterState_Get() local 681 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); _PyInterpreterState_IDDecref() local 748 free_threadstate(PyThreadState *tstate) free_threadstate() argument 764 init_threadstate(PyThreadState *tstate, PyInterpreterState *interp, uint64_t id, PyThreadState *next) init_threadstate() argument 808 PyThreadState *tstate; new_threadstate() local 863 PyThreadState *tstate = new_threadstate(interp); PyThreadState_New() local 877 _PyThreadState_Init(PyThreadState *tstate) _PyThreadState_Init() argument 883 _PyThreadState_SetCurrent(PyThreadState *tstate) _PyThreadState_SetCurrent() argument 908 _PyState_AddModule(PyThreadState *tstate, PyObject* module, PyModuleDef* def) _PyState_AddModule() argument 948 PyThreadState *tstate = _PyThreadState_GET(); PyState_AddModule() local 964 PyThreadState *tstate = _PyThreadState_GET(); PyState_RemoveModule() local 1019 PyThreadState_Clear(PyThreadState *tstate) PyThreadState_Clear() argument 1070 tstate_delete_common(PyThreadState *tstate, struct _gilstate_runtime_state *gilstate) tstate_delete_common() argument 1107 _PyThreadState_Delete(PyThreadState *tstate, int check_current) _PyThreadState_Delete() argument 1121 PyThreadState_Delete(PyThreadState *tstate) PyThreadState_Delete() argument 1128 _PyThreadState_DeleteCurrent(PyThreadState *tstate) _PyThreadState_DeleteCurrent() argument 1142 PyThreadState *tstate = _PyRuntimeGILState_GetThreadState(gilstate); PyThreadState_DeleteCurrent() local 1155 _PyThreadState_DeleteExcept(_PyRuntimeState *runtime, PyThreadState *tstate) _PyThreadState_DeleteExcept() argument 1199 PyThreadState *tstate = _PyThreadState_GET(); PyThreadState_Get() local 1243 _PyThreadState_GetDict(PyThreadState *tstate) _PyThreadState_GetDict() argument 1259 PyThreadState *tstate = _PyThreadState_GET(); PyThreadState_GetDict() local 1268 PyThreadState_GetInterpreter(PyThreadState *tstate) PyThreadState_GetInterpreter() argument 1276 PyThreadState_GetFrame(PyThreadState *tstate) PyThreadState_GetFrame() argument 1296 PyThreadState_GetID(PyThreadState *tstate) PyThreadState_GetID() argument 1375 PyThreadState_Next(PyThreadState *tstate) PyThreadState_Next() argument 1387 PyThreadState *tstate = _PyThreadState_GET(); _PyThread_CurrentFrames() local 1445 PyThreadState *tstate = _PyThreadState_GET(); _PyThread_CurrentExceptions() local 1512 PyThreadState_IsCurrent(PyThreadState *tstate) PyThreadState_IsCurrent() argument 1538 _PyGILState_SetTstate(PyThreadState *tstate) _PyGILState_SetTstate() argument 1583 PyThreadState *tstate = _PyGILState_GetThisThreadState(gilstate); _PyGILState_Reinit() local 1607 _PyGILState_NoteThreadState(struct _gilstate_runtime_state *gilstate, PyThreadState* tstate) _PyGILState_NoteThreadState() argument 1665 PyThreadState *tstate = _PyRuntimeGILState_GetThreadState(gilstate); PyGILState_Check() local 1725 PyThreadState *tstate = PyThread_tss_get(&runtime->gilstate.autoTSSkey); PyGILState_Release() local 1797 _check_xidata(PyThreadState *tstate, _PyCrossInterpreterData *data) _check_xidata() argument 1821 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_GetCrossInterpreterData() local 1877 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); _call_in_interpreter() local 2171 PyThreadState *tstate = _PyThreadState_GET(); _Py_GetConfig() local 2178 push_chunk(PyThreadState *tstate, int size) push_chunk() argument 2203 _PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size) _PyThreadState_BumpFramePointerSlow() argument 2218 _PyThreadState_PopFrame(PyThreadState *tstate, _PyInterpreterFrame * frame) _PyThreadState_PopFrame() argument [all...] |
H A D | sysmodule.c | 64 _PySys_GetAttr(PyThreadState *tstate, PyObject *name) in _PySys_GetAttr() argument 66 PyObject *sd = tstate->interp->sysdict; in _PySys_GetAttr() 71 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in _PySys_GetAttr() 75 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in _PySys_GetAttr() 92 PyThreadState *tstate = _PyThreadState_GET(); in PySys_GetObject() local 95 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in PySys_GetObject() 96 PyObject *value = _PySys_GetObject(tstate->interp, name); in PySys_GetObject() 99 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in PySys_GetObject() 176 /* The current implementation cannot be called if tstate is not in sys_audit_tstate() 292 _PySys_Audit(PyThreadState *tstate, cons argument 309 PyThreadState *tstate = _PyThreadState_GET(); PySys_Audit() local 366 PyThreadState *tstate; PySys_AddAuditHook() local 425 PyThreadState *tstate = _PyThreadState_GET(); sys_addaudithook_impl() local 462 PyThreadState *tstate = _PyThreadState_GET(); sys_audit() local 512 PyThreadState *tstate = _PyThreadState_GET(); sys_breakpointhook() local 680 PyThreadState *tstate = _PyThreadState_GET(); sys_displayhook() local 933 call_trampoline(PyThreadState *tstate, PyObject* callback, PyFrameObject *frame, int what, PyObject *arg) call_trampoline() argument 964 PyThreadState *tstate = _PyThreadState_GET(); profile_trampoline() local 990 PyThreadState *tstate = _PyThreadState_GET(); trace_trampoline() local 1010 PyThreadState *tstate = _PyThreadState_GET(); sys_settrace() local 1043 PyThreadState *tstate = _PyThreadState_GET(); sys_gettrace_impl() local 1055 PyThreadState *tstate = _PyThreadState_GET(); sys_setprofile() local 1088 PyThreadState *tstate = _PyThreadState_GET(); sys_getprofile_impl() local 1158 PyThreadState *tstate = _PyThreadState_GET(); sys_setrecursionlimit_impl() local 1360 get_hash_info(PyThreadState *tstate) get_hash_info() argument 1649 PyThreadState *tstate = _PyThreadState_GET(); sys_set_int_max_str_digits_impl() local 1667 PyThreadState *tstate = _PyThreadState_GET(); _PySys_GetSizeOf() local 1710 PyThreadState *tstate = _PyThreadState_GET(); sys_getsizeof() local 1818 PyThreadState *tstate = _PyThreadState_GET(); sys__getframe_impl() local 2226 get_warnoptions(PyThreadState *tstate) get_warnoptions() argument 2256 PyThreadState *tstate = _PyThreadState_GET(); PySys_ResetWarnOptions() local 2269 _PySys_AddWarnOptionWithError(PyThreadState *tstate, PyObject *option) _PySys_AddWarnOptionWithError() argument 2284 PyThreadState *tstate = _PyThreadState_GET(); PySys_AddWarnOptionUnicode() local 2296 PyThreadState *tstate = _PyThreadState_GET(); PySys_AddWarnOption() local 2315 PyThreadState *tstate = _PyThreadState_GET(); PySys_HasWarnOptions() local 2322 get_xoptions(PyThreadState *tstate) get_xoptions() argument 2354 PyThreadState *tstate = _PyThreadState_GET(); _PySys_AddXOptionWithError() local 2389 PyThreadState *tstate = _PyThreadState_GET(); PySys_AddXOption() local 2403 PyThreadState *tstate = _PyThreadState_GET(); PySys_GetXOptions() local 2629 make_version_info(PyThreadState *tstate) make_version_info() argument 2882 _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict) _PySys_InitCore() argument 3071 _PySys_UpdateConfig(PyThreadState *tstate) _PySys_UpdateConfig() argument 3179 _PySys_Create(PyThreadState *tstate, PyObject **sysmod_p) _PySys_Create() argument 3318 PyThreadState *tstate = _PyThreadState_GET(); PySys_SetArgvEx() local 3437 PyThreadState *tstate = _PyThreadState_GET(); sys_write() local 3480 PyThreadState *tstate = _PyThreadState_GET(); sys_format() local [all...] |
H A D | ceval.c | 98 PyThreadState *tstate, PyObject *callable, PyObject **stack, 101 PyThreadState *tstate, PyObject *func, 197 static void format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg); 199 static int check_except_type_valid(PyThreadState *tstate, PyObject* right); 200 static int check_except_star_type_valid(PyThreadState *tstate, PyObject* right); 205 _PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func, 209 _PyEvalFrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame *frame); 220 /* Ensure that tstate is valid: sanity check for PyEval_AcquireThread() and 221 PyEval_RestoreThread(). Detect if tstate memory was freed. It can happen 225 is_tstate_valid(PyThreadState *tstate) in is_tstate_valid() argument 364 _PyEval_InitGIL(PyThreadState *tstate) _PyEval_InitGIL() argument 424 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); PyEval_AcquireLock() local 434 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); PyEval_ReleaseLock() local 444 _PyEval_ReleaseLock(PyThreadState *tstate) _PyEval_ReleaseLock() argument 452 PyEval_AcquireThread(PyThreadState *tstate) PyEval_AcquireThread() argument 465 PyEval_ReleaseThread(PyThreadState *tstate) PyEval_ReleaseThread() argument 484 _PyEval_ReInitThreads(PyThreadState *tstate) _PyEval_ReInitThreads() argument 520 PyThreadState *tstate = _PyThreadState_Swap(&runtime->gilstate, NULL); PyEval_SaveThread() local 531 PyEval_RestoreThread(PyThreadState *tstate) PyEval_RestoreThread() argument 655 PyThreadState *tstate = _PyThreadState_GET(); Py_AddPendingCall() local 672 handle_signals(PyThreadState *tstate) handle_signals() argument 739 _Py_FinishPendingCalls(PyThreadState *tstate) _Py_FinishPendingCalls() argument 766 PyThreadState *tstate = _PyThreadState_GET(); Py_MakePendingCalls() local 833 _Py_CheckRecursiveCall(PyThreadState *tstate, const char *where) _Py_CheckRecursiveCall() argument 907 match_keys(PyThreadState *tstate, PyObject *map, PyObject *keys) match_keys() argument 990 match_class_attr(PyThreadState *tstate, PyObject *subject, PyObject *type, PyObject *name, PyObject *seen) match_class_attr() argument 1014 match_class(PyThreadState *tstate, PyObject *subject, PyObject *type, Py_ssize_t nargs, PyObject *kwargs) match_class() argument 1132 PyThreadState *tstate = _PyThreadState_GET(); PyEval_EvalCode() local 1166 PyThreadState *tstate = _PyThreadState_GET(); PyEval_EvalFrame() local 1173 PyThreadState *tstate = _PyThreadState_GET(); PyEval_EvalFrameEx() local 1181 eval_frame_handle_pending(PyThreadState *tstate) eval_frame_handle_pending() argument 1565 trace_function_entry(PyThreadState *tstate, _PyInterpreterFrame *frame) trace_function_entry() argument 1604 trace_function_exit(PyThreadState *tstate, _PyInterpreterFrame *frame, PyObject *retval) trace_function_exit() argument 1635 _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag) global() argument 5845 format_missing(PyThreadState *tstate, const char *kind, PyCodeObject *co, PyObject *names, PyObject *qualname) global() argument 5908 missing_arguments(PyThreadState *tstate, PyCodeObject *co, Py_ssize_t missing, Py_ssize_t defcount, PyObject **localsplus, PyObject *qualname) global() argument 5947 too_many_positional(PyThreadState *tstate, PyCodeObject *co, Py_ssize_t given, PyObject *defaults, PyObject **localsplus, PyObject *qualname) global() argument 6005 positional_only_passed_as_keyword(PyThreadState *tstate, PyCodeObject *co, Py_ssize_t kwcount, PyObject* kwnames, PyObject *qualname) global() argument 6137 initialize_locals(PyThreadState *tstate, PyFunctionObject *func, PyObject **localsplus, PyObject *const *args, Py_ssize_t argcount, PyObject *kwnames) global() argument 6364 _PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func, PyObject *locals, PyObject* const* args, size_t argcount, PyObject *kwnames) global() argument 6402 _PyEvalFrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame * frame) global() argument 6417 _PyEval_Vector(PyThreadState *tstate, PyFunctionObject *func, PyObject *locals, PyObject* const* args, size_t argcount, PyObject *kwnames) global() argument 6456 PyThreadState *tstate = _PyThreadState_GET(); global() local 6525 do_raise(PyThreadState *tstate, PyObject *exc, PyObject *cause) global() argument 6687 unpack_iterable(PyThreadState *tstate, PyObject *v, int argcnt, int argcntafter, PyObject **sp) global() argument 6780 call_exc_trace(Py_tracefunc func, PyObject *self, PyThreadState *tstate, _PyInterpreterFrame *f) global() argument 6811 call_trace_protected(Py_tracefunc func, PyObject *obj, PyThreadState *tstate, _PyInterpreterFrame *frame, int what, PyObject *arg) global() argument 6843 PyThreadState_EnterTracing(PyThreadState *tstate) global() argument 6850 PyThreadState_LeaveTracing(PyThreadState *tstate) global() argument 6858 call_trace(Py_tracefunc func, PyObject *obj, PyThreadState *tstate, _PyInterpreterFrame *frame, int what, PyObject *arg) global() argument 6889 PyThreadState *tstate = _PyThreadState_GET(); global() local 6905 maybe_call_line_trace(Py_tracefunc func, PyObject *obj, PyThreadState *tstate, _PyInterpreterFrame *frame, int instr_prev) global() argument 6948 _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg) global() argument 6992 PyThreadState *tstate = _PyThreadState_GET(); global() local 7000 _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg) global() argument 7045 PyThreadState *tstate = _PyThreadState_GET(); global() local 7056 PyThreadState *tstate = _PyThreadState_GET(); global() local 7069 PyThreadState *tstate = _PyThreadState_GET(); global() local 7076 PyThreadState *tstate = _PyThreadState_GET(); global() local 7090 PyThreadState *tstate = _PyThreadState_GET(); global() local 7097 PyThreadState *tstate = _PyThreadState_GET(); global() local 7111 PyThreadState *tstate = _PyThreadState_GET(); global() local 7118 PyThreadState *tstate = _PyThreadState_GET(); global() local 7140 _PyEval_GetBuiltins(PyThreadState *tstate) global() argument 7152 PyThreadState *tstate = _PyThreadState_GET(); global() local 7160 PyThreadState *tstate = _PyThreadState_GET(); global() local 7180 PyThreadState *tstate = _PyThreadState_GET(); global() local 7199 PyThreadState *tstate = _PyThreadState_GET(); global() local 7210 PyThreadState *tstate = _PyThreadState_GET(); global() local 7285 trace_call_function(PyThreadState *tstate, PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) global() argument 7319 do_call_core(PyThreadState *tstate, PyObject *func, PyObject *callargs, PyObject *kwdict, int use_tracing ) global() argument 7369 PyThreadState *tstate = _PyThreadState_GET(); global() local 7391 PyThreadState *tstate = _PyThreadState_GET(); global() local 7409 import_name(PyThreadState *tstate, _PyInterpreterFrame *frame, PyObject *name, PyObject *fromlist, PyObject *level) global() argument 7451 import_from(PyThreadState *tstate, PyObject *v, PyObject *name) global() argument 7524 import_all_from(PyThreadState *tstate, PyObject *locals, PyObject *v) global() argument 7619 check_except_type_valid(PyThreadState *tstate, PyObject* right) global() argument 7644 check_except_star_type_valid(PyThreadState *tstate, PyObject* right) global() argument 7681 check_args_iterable(PyThreadState *tstate, PyObject *func, PyObject *args) global() argument 7701 format_kwargs_error(PyThreadState *tstate, PyObject *func, PyObject *kwargs) global() argument 7745 format_exc_check_arg(PyThreadState *tstate, PyObject *exc, const char *format_str, PyObject *obj) global() argument 7777 format_exc_unbound(PyThreadState *tstate, PyCodeObject *co, int oparg) global() argument 7794 format_awaitable_error(PyThreadState *tstate, PyTypeObject *type, int oparg) global() argument [all...] |
H A D | pylifecycle.c | 74 static PyStatus init_sys_streams(PyThreadState *tstate); 75 static void wait_for_thread_shutdown(PyThreadState *tstate); 176 init_importlib(PyThreadState *tstate, PyObject *sysmod) in init_importlib() argument 178 assert(!_PyErr_Occurred(tstate)); in init_importlib() 180 PyInterpreterState *interp = tstate->interp; in init_importlib() 200 PyObject *imp_mod = _PyImport_BootstrapImp(tstate); in init_importlib() 218 assert(!_PyErr_Occurred(tstate)); in init_importlib() 224 init_importlib_external(PyThreadState *tstate) in init_importlib_external() argument 227 value = PyObject_CallMethod(tstate->interp->importlib, in init_importlib_external() 230 _PyErr_Print(tstate); in init_importlib_external() 464 interpreter_update_config(PyThreadState *tstate, int only_update_path_config) interpreter_update_config() argument 495 PyThreadState *tstate = _PyThreadState_GET(); _PyInterpreterState_SetConfig() local 544 PyThreadState *tstate = _PyThreadState_GET(); pyinit_core_reconfigure() local 614 init_interp_create_gil(PyThreadState *tstate) init_interp_create_gil() argument 660 PyThreadState *tstate = PyThreadState_New(interp); pycore_create_interpreter() local 762 pycore_init_builtins(PyThreadState *tstate) pycore_init_builtins() argument 820 pycore_interp_init(PyThreadState *tstate) pycore_interp_init() argument 894 PyThreadState *tstate; pyinit_config() local 1083 pyinit_main_reconfigure(PyThreadState *tstate) pyinit_main_reconfigure() argument 1093 init_interp_main(PyThreadState *tstate) init_interp_main() argument 1219 pyinit_main(PyThreadState *tstate) pyinit_main() argument 1253 PyThreadState *tstate = NULL; Py_InitializeFromConfig() local 1314 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); _Py_InitializeMain() local 1320 finalize_modules_delete_special(PyThreadState *tstate, int verbose) finalize_modules_delete_special() argument 1463 finalize_restore_builtins(PyThreadState *tstate) finalize_restore_builtins() argument 1524 finalize_modules(PyThreadState *tstate) finalize_modules() argument 1626 PyThreadState *tstate = _PyThreadState_GET(); flush_std_files() local 1701 finalize_interp_clear(PyThreadState *tstate) finalize_interp_clear() argument 1761 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); Py_FinalizeEx() local 1980 PyThreadState *tstate = PyThreadState_New(interp); new_interpreter() local 2042 PyThreadState *tstate = NULL; _Py_NewInterpreter() local 2070 Py_EndInterpreter(PyThreadState *tstate) Py_EndInterpreter() argument 2388 init_sys_streams(PyThreadState *tstate) init_sys_streams() argument 2486 _Py_FatalError_DumpTracebacks(int fd, PyInterpreterState *interp, PyThreadState *tstate) _Py_FatalError_DumpTracebacks() argument 2504 _Py_FatalError_PrintExc(PyThreadState *tstate) _Py_FatalError_PrintExc() argument 2767 PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); fatal_error() local 2891 wait_for_thread_shutdown(PyThreadState *tstate) wait_for_thread_shutdown() argument [all...] |
H A D | ceval_gil.h | 147 PyThreadState *tstate) in drop_gil() 154 /* tstate is allowed to be NULL (early interpreter init) */ in drop_gil() 155 if (tstate != NULL) { in drop_gil() 159 _Py_atomic_store_relaxed(&gil->last_holder, (uintptr_t)tstate); in drop_gil() 169 if (_Py_atomic_load_relaxed(&ceval2->gil_drop_request) && tstate != NULL) { in drop_gil() 172 if (((PyThreadState*)_Py_atomic_load_relaxed(&gil->last_holder)) == tstate) in drop_gil() 174 assert(is_tstate_valid(tstate)); in drop_gil() 175 RESET_GIL_DROP_REQUEST(tstate->interp); in drop_gil() 194 tstate must be non-NULL. */ 196 tstate_must_exit(PyThreadState *tstate) in tstate_must_exit() argument 146 drop_gil(struct _ceval_runtime_state *ceval, struct _ceval_state *ceval2, PyThreadState *tstate) drop_gil() argument 213 take_gil(PyThreadState *tstate) take_gil() argument [all...] |
H A D | import.c | 28 static PyObject *import_add_module(PyThreadState *tstate, PyObject *name); 49 _PyImportZip_Init(PyThreadState *tstate) in _PyImportZip_Init() argument 56 _PyErr_SetString(tstate, PyExc_RuntimeError, in _PyImportZip_Init() 61 int verbose = _PyInterpreterState_GetConfig(tstate->interp)->verbose; in _PyImportZip_Init() 68 _PyErr_Clear(tstate); /* No zip import module -- okay */ in _PyImportZip_Init() 77 _PyErr_Clear(tstate); /* No zipimporter object -- okay */ in _PyImportZip_Init() 128 PyThreadState *tstate = PyEval_SaveThread(); in _PyImport_AcquireLock() local 130 PyEval_RestoreThread(tstate); in _PyImport_AcquireLock() 312 import_get_module(PyThreadState *tstate, PyObject *name) in import_get_module() argument 314 PyObject *modules = tstate in import_get_module() 426 PyThreadState *tstate = _PyThreadState_GET(); _PyImport_FixupExtensionObject() local 490 import_find_extension(PyThreadState *tstate, PyObject *name, PyObject *filename) import_find_extension() argument 558 import_add_module(PyThreadState *tstate, PyObject *name) import_add_module() argument 601 PyThreadState *tstate = _PyThreadState_GET(); PyImport_AddModuleObject() local 635 remove_module(PyThreadState *tstate, PyObject *name) remove_module() argument 733 module_dict_for_exec(PyThreadState *tstate, PyObject *name) module_dict_for_exec() argument 759 exec_code_in_module(PyThreadState *tstate, PyObject *name, PyObject *module_dict, PyObject *code_object) exec_code_in_module() argument 785 PyThreadState *tstate = _PyThreadState_GET(); PyImport_ExecCodeModuleObject() local 902 get_path_importer(PyThreadState *tstate, PyObject *path_importer_cache, PyObject *path_hooks, PyObject *p) get_path_importer() argument 952 PyThreadState *tstate = _PyThreadState_GET(); PyImport_GetImporter() local 969 create_builtin(PyThreadState *tstate, PyObject *name, PyObject *spec) create_builtin() argument 1028 PyThreadState *tstate = _PyThreadState_GET(); _imp_create_builtin() local 1353 PyThreadState *tstate = _PyThreadState_GET(); PyImport_ImportFrozenModuleObject() local 1478 remove_importlib_frames(PyThreadState *tstate) remove_importlib_frames() argument 1538 resolve_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level) resolve_name() argument 1694 import_find_and_load(PyThreadState *tstate, PyObject *abs_name) import_find_and_load() argument 1761 PyThreadState *tstate = _PyThreadState_GET(); PyImport_GetModule() local 1780 PyThreadState *tstate = _PyThreadState_GET(); PyImport_ImportModuleLevelObject() local 1978 PyThreadState *tstate = _PyThreadState_GET(); PyImport_Import() local 2094 PyThreadState *tstate = _PyThreadState_GET(); _imp_init_frozen_impl() local 2366 PyThreadState *tstate = _PyThreadState_GET(); _imp_create_dynamic_impl() local 2527 _PyImport_BootstrapImp(PyThreadState *tstate) _PyImport_BootstrapImp() argument [all...] |
H A D | traceback.c | 270 PyThreadState *tstate = _PyThreadState_GET(); in _PyTraceback_Add() local 275 _PyErr_Fetch(tstate, &exc, &val, &tb); in _PyTraceback_Add() 285 frame = PyFrame_New(tstate, code, globals, NULL); in _PyTraceback_Add() 292 _PyErr_Restore(tstate, exc, val, tb); in _PyTraceback_Add() 333 PyThreadState *tstate = _PyThreadState_GET(); in _Py_FindSourceFile() local 334 syspath = _PySys_GetAttr(tstate, &_Py_ID(path)); in _Py_FindSourceFile() 366 binary = _PyObject_CallMethodFormat(tstate, open, "ss", namebuf, "rb"); in _Py_FindSourceFile() 1221 dump_traceback(int fd, PyThreadState *tstate, int write_header) in dump_traceback() argument 1230 frame = tstate->cframe->current_frame; in dump_traceback() 1258 _Py_DumpTraceback(int fd, PyThreadState *tstate) in _Py_DumpTraceback() argument 1269 write_thread_id(int fd, PyThreadState *tstate, int is_current) write_thread_id() argument 1291 PyThreadState *tstate; _Py_DumpTracebackThreads() local [all...] |
H A D | _warnings.c | 43 PyThreadState *tstate = _PyThreadState_GET(); in get_current_tstate() local 44 if (tstate == NULL) { in get_current_tstate() 48 return check_interp(tstate->interp) ? tstate : NULL; in get_current_tstate() 495 show_warning(PyThreadState *tstate, PyObject *filename, int lineno, in show_warning() argument 509 f_stderr = _PySys_GetAttr(tstate, &_Py_ID(stderr)); in show_warning() 568 call_show_warning(PyThreadState *tstate, PyObject *category, in call_show_warning() argument 574 PyInterpreterState *interp = tstate->interp; in call_show_warning() 583 show_warning(tstate, filename, lineno, text, category, sourceline); in call_show_warning() 625 warn_explicit(PyThreadState *tstate, PyObjec argument 823 PyThreadState *tstate = get_current_tstate(); setup_context() local 939 PyThreadState *tstate = get_current_tstate(); do_warn() local 1216 PyThreadState *tstate = get_current_tstate(); PyErr_WarnExplicitObject() local 1284 PyThreadState *tstate = get_current_tstate(); PyErr_WarnExplicitFormat() local [all...] |
H A D | pythonrun.c | 119 PyThreadState *tstate = _PyThreadState_GET(); in _PyRun_InteractiveLoopObject() local 120 PyObject *v = _PySys_GetAttr(tstate, &_Py_ID(ps1)); in _PyRun_InteractiveLoopObject() 125 v = _PySys_GetAttr(tstate, &_Py_ID(ps2)); in _PyRun_InteractiveLoopObject() 194 PyThreadState *tstate = _PyThreadState_GET(); in PyRun_InteractiveOneObjectEx() local 198 v = _PySys_GetAttr(tstate, &_Py_ID(stdin)); in PyRun_InteractiveOneObjectEx() 207 v = _PySys_GetAttr(tstate, &_Py_ID(ps1)); in PyRun_InteractiveOneObjectEx() 220 w = _PySys_GetAttr(tstate, &_Py_ID(ps2)); in PyRun_InteractiveOneObjectEx() 736 PyThreadState *tstate = _PyThreadState_GET(); in _Py_HandleSystemExit() local 737 PyObject *sys_stderr = _PySys_GetAttr(tstate, &_Py_ID(stderr)); in _Py_HandleSystemExit() 777 _PyErr_PrintEx(PyThreadState *tstate, in argument 867 _PyErr_Print(PyThreadState *tstate) _PyErr_Print() argument 875 PyThreadState *tstate = _PyThreadState_GET(); PyErr_PrintEx() local 1573 PyThreadState *tstate = _PyThreadState_GET(); PyErr_Display() local 1667 PyThreadState *tstate = _PyThreadState_GET(); flush_io() local 1689 run_eval_code_obj(PyThreadState *tstate, PyCodeObject *co, PyObject *globals, PyObject *locals) run_eval_code_obj() argument 1725 PyThreadState *tstate = _PyThreadState_GET(); run_mod() local 1744 PyThreadState *tstate = _PyThreadState_GET(); run_pyc_file() local [all...] |
/third_party/python/Objects/ |
H A D | call.c | 12 _PyStack_UnpackDict(PyThreadState *tstate, 22 null_error(PyThreadState *tstate) in null_error() argument 24 if (!_PyErr_Occurred(tstate)) { in null_error() 25 _PyErr_SetString(tstate, PyExc_SystemError, in null_error() 33 _Py_CheckFunctionResult(PyThreadState *tstate, PyObject *callable, in _Py_CheckFunctionResult() argument 39 if (!_PyErr_Occurred(tstate)) { in _Py_CheckFunctionResult() 41 _PyErr_Format(tstate, PyExc_SystemError, in _Py_CheckFunctionResult() 45 _PyErr_Format(tstate, PyExc_SystemError, in _Py_CheckFunctionResult() 57 if (_PyErr_Occurred(tstate)) { in _Py_CheckFunctionResult() 62 tstate, PyExc_SystemErro in _Py_CheckFunctionResult() 85 PyThreadState *tstate = _PyThreadState_GET(); _Py_CheckSlotResult() local 117 _PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable, PyObject *const *args, size_t nargsf, PyObject *kwargs) _PyObject_FastCallDictTstate() argument 164 PyThreadState *tstate = _PyThreadState_GET(); PyObject_VectorcallDict() local 170 _PyObject_MakeTpCall(PyThreadState *tstate, PyObject *callable, PyObject *const *args, Py_ssize_t nargs, PyObject *keywords) _PyObject_MakeTpCall() argument 236 _PyVectorcall_Call(PyThreadState *tstate, vectorcallfunc func, PyObject *callable, PyObject *tuple, PyObject *kwargs) _PyVectorcall_Call() argument 268 PyThreadState *tstate = _PyThreadState_GET(); PyVectorcall_Call() local 298 PyThreadState *tstate = _PyThreadState_GET(); PyObject_Vectorcall() local 307 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_FastCall() local 313 _PyObject_Call(PyThreadState *tstate, PyObject *callable, PyObject *args, PyObject *kwargs) _PyObject_Call() argument 354 PyThreadState *tstate = _PyThreadState_GET(); PyObject_Call() local 362 PyThreadState *tstate = _PyThreadState_GET(); PyCFunction_Call() local 374 PyThreadState *tstate = _PyThreadState_GET(); PyObject_CallOneArg() local 390 PyThreadState *tstate = _PyThreadState_GET(); _PyFunction_Vectorcall() local 408 PyThreadState *tstate = _PyThreadState_GET(); PyEval_CallObjectWithKeywords() local 440 PyThreadState *tstate = _PyThreadState_GET(); PyObject_CallObject() local 456 _PyObject_Call_Prepend(PyThreadState *tstate, PyObject *callable, PyObject *obj, PyObject *args, PyObject *kwargs) _PyObject_Call_Prepend() argument 495 _PyObject_CallFunctionVa(PyThreadState *tstate, PyObject *callable, const char *format, va_list va, int is_size_t) _PyObject_CallFunctionVa() argument 555 PyThreadState *tstate = _PyThreadState_GET(); PyObject_CallFunction() local 573 PyThreadState *tstate = _PyThreadState_GET(); PyEval_CallFunction() local 586 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_CallFunction_SizeT() local 598 callmethod(PyThreadState *tstate, PyObject* callable, const char *format, va_list va, int is_size_t) callmethod() argument 614 PyThreadState *tstate = _PyThreadState_GET(); PyObject_CallMethod() local 641 PyThreadState *tstate = _PyThreadState_GET(); PyEval_CallMethod() local 665 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_CallMethod() local 689 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_CallMethodId() local 709 _PyObject_CallMethodFormat(PyThreadState *tstate, PyObject *callable, const char *format, ...) _PyObject_CallMethodFormat() argument 724 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_CallMethod_SizeT() local 748 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_CallMethodId_SizeT() local 771 object_vacall(PyThreadState *tstate, PyObject *base, PyObject *callable, va_list vargs) object_vacall() argument 836 PyThreadState *tstate = _PyThreadState_GET(); PyObject_VectorcallMethod() local 865 PyThreadState *tstate = _PyThreadState_GET(); PyObject_CallMethodObjArgs() local 890 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_CallMethodIdObjArgs() local 920 PyThreadState *tstate = _PyThreadState_GET(); PyObject_CallFunctionObjArgs() local 959 _PyStack_UnpackDict(PyThreadState *tstate, PyObject *const *args, Py_ssize_t nargs, PyObject *kwargs, PyObject **p_kwnames) _PyStack_UnpackDict() argument [all...] |
H A D | methodobject.c | 385 cfunction_check_kwargs(PyThreadState *tstate, PyObject *func, PyObject *kwnames) in cfunction_check_kwargs() argument 387 assert(!_PyErr_Occurred(tstate)); in cfunction_check_kwargs() 392 _PyErr_Format(tstate, PyExc_TypeError, in cfunction_check_kwargs() 404 cfunction_enter_call(PyThreadState *tstate, PyObject *func) in cfunction_enter_call() argument 406 if (_Py_EnterRecursiveCallTstate(tstate, " while calling a Python object")) { in cfunction_enter_call() 417 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL() local 418 if (cfunction_check_kwargs(tstate, func, kwnames)) { in cfunction_vectorcall_FASTCALL() 423 cfunction_enter_call(tstate, func); in cfunction_vectorcall_FASTCALL() 428 _Py_LeaveRecursiveCallTstate(tstate); in cfunction_vectorcall_FASTCALL() 436 PyThreadState *tstate in cfunction_vectorcall_FASTCALL_KEYWORDS() local 452 PyThreadState *tstate = _PyThreadState_GET(); cfunction_vectorcall_FASTCALL_KEYWORDS_METHOD() local 468 PyThreadState *tstate = _PyThreadState_GET(); cfunction_vectorcall_NOARGS() local 496 PyThreadState *tstate = _PyThreadState_GET(); cfunction_vectorcall_O() local 526 PyThreadState *tstate = _PyThreadState_GET(); cfunction_call() local [all...] |
H A D | object.c | 419 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_Repr() 424 assert(!_PyErr_Occurred(tstate)); in PyObject_Repr() 429 if (_Py_EnterRecursiveCallTstate(tstate, in PyObject_Repr() 434 _Py_LeaveRecursiveCallTstate(tstate); in PyObject_Repr() 440 _PyErr_Format(tstate, PyExc_TypeError, in PyObject_Repr() 479 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_Str() 484 assert(!_PyErr_Occurred(tstate)); in PyObject_Str() 489 if (_Py_EnterRecursiveCallTstate(tstate, " while getting the str of an object")) { in PyObject_Str() 493 _Py_LeaveRecursiveCallTstate(tstate); in PyObject_Str() 499 _PyErr_Format(tstate, PyExc_TypeErro in PyObject_Str() 663 do_richcompare(PyThreadState *tstate, PyObject *v, PyObject *w, int op) do_richcompare() argument 717 PyThreadState *tstate = _PyThreadState_GET(); PyObject_RichCompare() local 2235 PyThreadState *tstate = _PyThreadState_GET(); _PyTrash_thread_deposit_object() local 2248 PyThreadState *tstate = _PyThreadState_GET(); _PyTrash_thread_destroy_chain() local 2284 _PyTrash_begin(PyThreadState *tstate, PyObject *op) _PyTrash_begin() argument 2298 _PyTrash_end(PyThreadState *tstate) _PyTrash_end() argument 2378 PyThreadState *tstate = _PyThreadState_GET(); _Py_Dealloc() local [all...] |
H A D | abstract.c | 28 PyThreadState *tstate = _PyThreadState_GET(); in null_error() local 29 if (!_PyErr_Occurred(tstate)) { in null_error() 30 _PyErr_SetString(tstate, PyExc_SystemError, in null_error() 98 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_LengthHint() local 99 assert(_PyErr_Occurred(tstate)); in PyObject_LengthHint() 100 if (!_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) { in PyObject_LengthHint() 103 _PyErr_Clear(tstate); in PyObject_LengthHint() 119 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_LengthHint() local 120 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) { in PyObject_LengthHint() 121 _PyErr_Clear(tstate); in PyObject_LengthHint() 803 PyThreadState *tstate = _PyThreadState_GET(); PyObject_Format() local 2160 PyThreadState *tstate = _PyThreadState_GET(); PySequence_Fast() local 2420 PyThreadState *tstate = _PyThreadState_GET(); method_output_as_list() local 2570 PyThreadState *tstate = _PyThreadState_GET(); check_class() local 2617 object_recursive_isinstance(PyThreadState *tstate, PyObject *inst, PyObject *cls) object_recursive_isinstance() argument 2684 PyThreadState *tstate = _PyThreadState_GET(); PyObject_IsInstance() local 2710 object_issubclass(PyThreadState *tstate, PyObject *derived, PyObject *cls) object_issubclass() argument 2772 PyThreadState *tstate = _PyThreadState_GET(); PyObject_IsSubclass() local 2866 PyThreadState *tstate = _PyThreadState_GET(); PyIter_Next() local [all...] |
/third_party/python/Include/internal/ |
H A D | pycore_ceval.h | 30 extern void _Py_FinishPendingCalls(PyThreadState *tstate); 41 extern PyStatus _PyEval_ReInitThreads(PyThreadState *tstate); 63 extern PyObject* _PyEval_GetBuiltins(PyThreadState *tstate); 65 PyThreadState *tstate, 70 _PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag) in _PyEval_EvalFrame() argument 72 if (tstate->interp->eval_frame == NULL) { in _PyEval_EvalFrame() 73 return _PyEval_EvalFrameDefault(tstate, frame, throwflag); in _PyEval_EvalFrame() 75 return tstate->interp->eval_frame(tstate, frame, throwflag); in _PyEval_EvalFrame() 79 _PyEval_Vector(PyThreadState *tstate, 98 _Py_MakeRecCheck(PyThreadState *tstate) _Py_MakeRecCheck() argument 103 _Py_MakeRecCheck(PyThreadState *tstate) _Py_MakeRecCheck() argument 112 _Py_EnterRecursiveCallTstate(PyThreadState *tstate, const char *where) _Py_EnterRecursiveCallTstate() argument 118 PyThreadState *tstate = _PyThreadState_GET(); _Py_EnterRecursiveCall() local 122 _Py_LeaveRecursiveCallTstate(PyThreadState *tstate) _Py_LeaveRecursiveCallTstate() argument 127 PyThreadState *tstate = _PyThreadState_GET(); _Py_LeaveRecursiveCall() local [all...] |
H A D | pycore_pystate.h | 91 _Py_EnsureFuncTstateNotNULL(const char *func, PyThreadState *tstate) in _Py_EnsureFuncTstateNotNULL() argument 93 if (tstate == NULL) { in _Py_EnsureFuncTstateNotNULL() 98 // Call Py_FatalError() if tstate is NULL 99 #define _Py_EnsureTstateNotNULL(tstate) \ 100 _Py_EnsureFuncTstateNotNULL(__func__, tstate) 112 PyThreadState *tstate = _PyThreadState_GET(); in _PyInterpreterState_GET() local 114 _Py_EnsureTstateNotNULL(tstate); in _PyInterpreterState_GET() 116 return tstate->interp; in _PyInterpreterState_GET() 122 PyAPI_FUNC(void) _PyThreadState_SetCurrent(PyThreadState *tstate); variable 125 PyThreadState *tstate); variable 132 _PyThreadState_UpdateTracingState(PyThreadState *tstate) _PyThreadState_UpdateTracingState() argument 162 PyAPI_FUNC(int) _PyOS_InterruptOccurred(PyThreadState *tstate); global() variable [all...] |
H A D | pycore_pyerrors.h | 20 static inline PyObject* _PyErr_Occurred(PyThreadState *tstate) in _PyErr_Occurred() argument 22 assert(tstate != NULL); in _PyErr_Occurred() 23 return tstate->curexc_type; in _PyErr_Occurred() 35 PyThreadState *tstate, 41 PyThreadState *tstate, 45 PyThreadState *tstate, 51 PyThreadState *tstate, 58 PyAPI_FUNC(void) _PyErr_Clear(PyThreadState *tstate); variable 60 PyAPI_FUNC(void) _PyErr_SetNone(PyThreadState *tstate, PyObject *exception); 62 PyAPI_FUNC(PyObject *) _PyErr_NoMemory(PyThreadState *tstate); variable 95 PyAPI_FUNC(int) _PyErr_CheckSignalsTstate(PyThreadState *tstate); global() variable [all...] |
H A D | pycore_call.h | 14 PyThreadState *tstate, 21 PyThreadState *tstate, 28 PyThreadState *tstate, 34 PyThreadState *tstate, PyObject *callable, const char *format, ...); 77 _PyObject_VectorcallTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_VectorcallTstate() argument 90 return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwnames); in _PyObject_VectorcallTstate() 93 return _Py_CheckFunctionResult(tstate, callable, res, NULL); in _PyObject_VectorcallTstate() 98 _PyObject_CallNoArgsTstate(PyThreadState *tstate, PyObject *func) { in _PyObject_CallNoArgsTstate() argument 99 return _PyObject_VectorcallTstate(tstate, func, NULL, 0, NULL); in _PyObject_CallNoArgsTstate() 106 PyThreadState *tstate in _PyObject_CallNoArgs() local 112 _PyObject_FastCallTstate(PyThreadState *tstate, PyObject *func, PyObject *const *args, Py_ssize_t nargs) _PyObject_FastCallTstate() argument [all...] |
H A D | pycore_frame.h | 196 _PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size); 199 _PyThreadState_HasStackSpace(PyThreadState *tstate, size_t size) in _PyThreadState_HasStackSpace() argument 202 (tstate->datastack_top == NULL && tstate->datastack_limit == NULL) in _PyThreadState_HasStackSpace() 204 (tstate->datastack_top != NULL && tstate->datastack_limit != NULL) in _PyThreadState_HasStackSpace() 206 return tstate->datastack_top != NULL && in _PyThreadState_HasStackSpace() 207 size < (size_t)(tstate->datastack_limit - tstate->datastack_top); in _PyThreadState_HasStackSpace() 211 _PyThreadState_BumpFramePointer(PyThreadState *tstate, size_ argument [all...] |
H A D | pycore_pylifecycle.h | 25 extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate); 40 PyThreadState *tstate, 44 extern int _PySys_UpdateConfig(PyThreadState *tstate); 49 extern PyStatus _PyImportZip_Init(PyThreadState *tstate); 74 extern PyStatus _PyGILState_SetTstate(PyThreadState *tstate); 92 PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate); variable 96 PyAPI_FUNC(void) _PyThreadState_DeleteCurrent(PyThreadState *tstate); variable
|
/third_party/python/Parser/ |
H A D | myreadline.c | 31 my_fgets(PyThreadState* tstate, char *buf, int len, FILE *fp) in my_fgets() argument 91 PyEval_RestoreThread(tstate); in my_fgets() 103 if (_PyOS_InterruptOccurred(tstate)) { in my_fgets() 117 _PyOS_WindowsConsoleReadline(PyThreadState *tstate, HANDLE hStdIn) in _PyOS_WindowsConsoleReadline() argument 152 PyEval_RestoreThread(tstate); in _PyOS_WindowsConsoleReadline() 174 PyEval_RestoreThread(tstate); in _PyOS_WindowsConsoleReadline() 183 PyEval_RestoreThread(tstate); in _PyOS_WindowsConsoleReadline() 198 PyEval_RestoreThread(tstate); in _PyOS_WindowsConsoleReadline() 211 PyEval_RestoreThread(tstate); in _PyOS_WindowsConsoleReadline() 229 PyEval_RestoreThread(tstate); in _PyOS_WindowsConsoleReadline() 246 PyThreadState *tstate = _PyOS_ReadlineTState; PyOS_StdioReadline() local 360 PyThreadState *tstate = _PyThreadState_GET(); PyOS_Readline() local [all...] |
/third_party/python/Modules/ |
H A D | faulthandler.c | 161 PyThreadState *tstate = _PyThreadState_GET(); in faulthandler_get_fileno() local 162 file = _PySys_GetAttr(tstate, &_Py_ID(stderr)); in faulthandler_get_fileno() 219 PyThreadState *tstate = _PyThreadState_GET(); in get_thread_state() local 220 if (tstate == NULL) { in get_thread_state() 226 return tstate; in get_thread_state() 234 PyThreadState *tstate; in faulthandler_dump_traceback() local 249 tstate = PyGILState_GetThisThreadState(); in faulthandler_dump_traceback() 252 (void)_Py_DumpTracebackThreads(fd, NULL, tstate); in faulthandler_dump_traceback() 255 if (tstate != NULL) in faulthandler_dump_traceback() 256 _Py_DumpTraceback(fd, tstate); in faulthandler_dump_traceback() 269 PyThreadState *tstate; faulthandler_dump_traceback_py() local 547 PyThreadState *tstate; faulthandler_py_enable() local 713 PyThreadState *tstate; faulthandler_dump_traceback_later() local 916 PyThreadState *tstate; faulthandler_register_py() local [all...] |
H A D | gcmodule.c | 928 handle_legacy_finalizers(PyThreadState *tstate, in handle_legacy_finalizers() argument 932 assert(!_PyErr_Occurred(tstate)); in handle_legacy_finalizers() 941 _PyErr_Clear(tstate); in handle_legacy_finalizers() 955 finalize_garbage(PyThreadState *tstate, PyGC_Head *collectable) in finalize_garbage() argument 979 assert(!_PyErr_Occurred(tstate)); in finalize_garbage() 991 delete_garbage(PyThreadState *tstate, GCState *gcstate, in delete_garbage() argument 994 assert(!_PyErr_Occurred(tstate)); in delete_garbage() 1006 _PyErr_Clear(tstate); in delete_garbage() 1014 if (_PyErr_Occurred(tstate)) { in delete_garbage() 1178 gc_collect_main(PyThreadState *tstate, in argument 1350 invoke_gc_callback(PyThreadState *tstate, const char *phase, int generation, Py_ssize_t collected, Py_ssize_t uncollectable) invoke_gc_callback() argument 1395 gc_collect_with_callback(PyThreadState *tstate, int generation) gc_collect_with_callback() argument 1407 gc_collect_generations(PyThreadState *tstate) gc_collect_generations() argument 1523 PyThreadState *tstate = _PyThreadState_GET(); gc_collect_impl() local 1751 PyThreadState *tstate = _PyThreadState_GET(); gc_get_objects_impl() local 2070 PyThreadState *tstate = _PyThreadState_GET(); PyGC_Collect() local 2095 _PyGC_CollectNoFail(PyThreadState *tstate) _PyGC_CollectNoFail() argument 2258 PyThreadState *tstate = _PyThreadState_GET(); _PyObject_GC_Link() local 2278 PyThreadState *tstate = _PyThreadState_GET(); gc_alloc() local [all...] |
H A D | _threadmodule.c | 859 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp); in local_clear() local 861 while (tstate) { in local_clear() 862 if (tstate->dict) { in local_clear() 863 PyObject *v = _PyDict_Pop(tstate->dict, self->key, Py_None); in local_clear() 872 tstate = PyThreadState_Next(tstate); in local_clear() 1060 PyThreadState *tstate; member 1079 PyThreadState *tstate; in thread_run() local 1081 tstate = boot->tstate; in thread_run() 1320 PyThreadState *tstate = _PyThreadState_GET(); thread__set_sentinel() local 1513 PyThreadState *tstate = _PyThreadState_GET(); thread_excepthook() local [all...] |
H A D | signalmodule.c | 545 PyThreadState *tstate = _PyThreadState_GET(); in signal_signal_impl() local 546 if (!_Py_ThreadCanHandleSignals(tstate->interp)) { in signal_signal_impl() 547 _PyErr_SetString(tstate, PyExc_ValueError, in signal_signal_impl() 553 _PyErr_SetString(tstate, PyExc_ValueError, in signal_signal_impl() 564 _PyErr_SetString(tstate, PyExc_TypeError, in signal_signal_impl() 571 if (_PyErr_CheckSignalsTstate(tstate)) { in signal_signal_impl() 781 PyThreadState *tstate = _PyThreadState_GET(); 782 if (!_Py_ThreadCanHandleSignals(tstate->interp)) { 783 _PyErr_SetString(tstate, PyExc_ValueError, 811 _PyErr_SetString(tstate, PyExc_ValueErro 1703 PyThreadState *tstate = _PyThreadState_GET(); global() local 1805 PyThreadState *tstate = _PyThreadState_GET(); global() local 1816 _PyErr_CheckSignalsTstate(PyThreadState *tstate) global() argument 1909 PyThreadState *tstate = _PyThreadState_GET(); global() local 2027 _PyOS_InterruptOccurred(PyThreadState *tstate) global() argument 2047 PyThreadState *tstate = _PyThreadState_GET(); global() local [all...] |