/external/python/cpython3/Include/internal/ |
D | pycore_ceval.h | 115 _PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag) in _PyEval_EvalFrame() 146 _PyEval_IsGILEnabled(PyThreadState *tstate) in _PyEval_IsGILEnabled() 190 static inline int _Py_MakeRecCheck(PyThreadState *tstate) { in _Py_MakeRecCheck() 195 static inline int _Py_MakeRecCheck(PyThreadState *tstate) { in _Py_MakeRecCheck() 209 static inline int _Py_EnterRecursiveCallTstate(PyThreadState *tstate, in _Py_EnterRecursiveCallTstate() 214 static inline void _Py_EnterRecursiveCallTstateUnchecked(PyThreadState *tstate) { in _Py_EnterRecursiveCallTstateUnchecked() 220 PyThreadState *tstate = _PyThreadState_GET(); in _Py_EnterRecursiveCall() local 224 static inline void _Py_LeaveRecursiveCallTstate(PyThreadState *tstate) { in _Py_LeaveRecursiveCallTstate() 229 PyThreadState *tstate = _PyThreadState_GET(); in _Py_LeaveRecursiveCall() local 276 _Py_set_eval_breaker_bit(PyThreadState *tstate, uintptr_t bit) in _Py_set_eval_breaker_bit() [all …]
|
D | pycore_pystate.h | 186 _Py_EnsureFuncTstateNotNULL(const char *func, PyThreadState *tstate) in _Py_EnsureFuncTstateNotNULL() 197 #define _Py_EnsureTstateNotNULL(tstate) \ argument 210 PyThreadState *tstate = _PyThreadState_GET(); in _PyInterpreterState_GET() local 284 PyThreadState *tstate = _PyThreadState_GET(); in _Py_object_freelists_GET() local
|
D | pycore_object_alloc.h | 18 _PyObject_GetAllocationHeap(_PyThreadStateImpl *tstate, PyTypeObject *tp) in _PyObject_GetAllocationHeap() 42 _PyThreadStateImpl *tstate = (_PyThreadStateImpl *)_PyThreadState_GET(); in _PyObject_MallocWithType() local 57 _PyThreadStateImpl *tstate = (_PyThreadStateImpl *)_PyThreadState_GET(); in _PyObject_ReallocWithType() local
|
D | pycore_critical_section.h | 113 PyThreadState *tstate = _PyThreadState_GET(); in _PyCriticalSection_BeginMutex() local 136 PyThreadState *tstate = _PyThreadState_GET(); in _PyCriticalSection_Pop() local 175 PyThreadState *tstate = _PyThreadState_GET(); in _PyCriticalSection2_BeginMutex() local 214 PyThreadState *tstate = _PyThreadState_GET(); in _PyCriticalSection_AssertHeld() local
|
D | pycore_call.h | 153 _PyObject_VectorcallTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_VectorcallTstate() 174 _PyObject_CallNoArgsTstate(PyThreadState *tstate, PyObject *func) { in _PyObject_CallNoArgsTstate() 183 PyThreadState *tstate = _PyThreadState_GET(); in _PyObject_CallNoArgs() local
|
/external/python/cpython3/Python/ |
D | pystate.c | 82 current_fast_set(_PyRuntimeState *Py_UNUSED(runtime), PyThreadState *tstate) in current_fast_set() 104 #define tstate_verify_not_active(tstate) \ argument 148 tstate_tss_set(Py_tss_t *key, PyThreadState *tstate) in tstate_tss_set() 173 PyThreadState *tstate = tstate_tss_get(key); in tstate_tss_reinit() local 204 #define _gilstate_tss_set(runtime, tstate) \ argument 212 gilstate_tss_set(_PyRuntimeState *runtime, PyThreadState *tstate) in gilstate_tss_set() 233 tstate_is_bound(PyThreadState *tstate) in tstate_is_bound() 245 bind_tstate(PyThreadState *tstate) in bind_tstate() 277 unbind_tstate(PyThreadState *tstate) in unbind_tstate() 318 bind_gilstate_tstate(PyThreadState *tstate) in bind_gilstate_tstate() [all …]
|
D | errors.c | 25 _PyErr_SetRaisedException(PyThreadState *tstate, PyObject *exc) in _PyErr_SetRaisedException() 59 _PyErr_Restore(PyThreadState *tstate, PyObject *type, PyObject *value, in _PyErr_Restore() 107 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_Restore() local 114 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetRaisedException() local 119 _PyErr_GetTopmostException(PyThreadState *tstate) in _PyErr_GetTopmostException() 133 get_normalization_failure_note(PyThreadState *tstate, PyObject *exception, PyObject *value) in get_normalization_failure_note() 155 _PyErr_SetObject(PyThreadState *tstate, PyObject *exception, PyObject *value) in _PyErr_SetObject() 249 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_SetObject() local 259 PyThreadState *tstate = _PyThreadState_GET(); in _PyErr_SetKeyError() local 270 _PyErr_SetNone(PyThreadState *tstate, PyObject *exception) in _PyErr_SetNone() [all …]
|
D | ceval.c | 283 _Py_CheckRecursiveCall(PyThreadState *tstate, const char *where) in _Py_CheckRecursiveCall() 355 _PyEval_MatchKeys(PyThreadState *tstate, PyObject *map, PyObject *keys) in _PyEval_MatchKeys() 437 match_class_attr(PyThreadState *tstate, PyObject *subject, PyObject *type, in match_class_attr() 459 _PyEval_MatchClass(PyThreadState *tstate, PyObject *subject, PyObject *type, in _PyEval_MatchClass() 578 PyThreadState *tstate = _PyThreadState_GET(); in PyEval_EvalCode() local 613 PyThreadState *tstate = _PyThreadState_GET(); in PyEval_EvalFrame() local 620 PyThreadState *tstate = _PyThreadState_GET(); in PyEval_EvalFrameEx() local 627 PyThreadState *tstate) in _Py_CheckRecursiveCallPy() 682 _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag) in _PyEval_EvalFrameDefault() 1124 format_missing(PyThreadState *tstate, const char *kind, in format_missing() [all …]
|
D | ceval_gil.c | 79 update_eval_breaker_for_thread(PyInterpreterState *interp, PyThreadState *tstate) in update_eval_breaker_for_thread() 209 drop_gil_impl(PyThreadState *tstate, struct _gil_runtime_state *gil) in drop_gil_impl() 222 drop_gil(PyInterpreterState *interp, PyThreadState *tstate, int final_release) in drop_gil() 292 take_gil(PyThreadState *tstate) in take_gil() 457 current_thread_holds_gil(struct _gil_runtime_state *gil, PyThreadState *tstate) in current_thread_holds_gil() 496 _PyEval_InitGIL(PyThreadState *tstate, int own_gil) in _PyEval_InitGIL() 564 PyThreadState *tstate = _PyThreadState_GET(); in PyEval_AcquireLock() local 574 PyThreadState *tstate = _PyThreadState_GET(); in PyEval_ReleaseLock() local 582 _PyEval_AcquireLock(PyThreadState *tstate) in _PyEval_AcquireLock() 590 PyThreadState *tstate, in _PyEval_ReleaseLock() [all …]
|
D | pylifecycle.c | 391 interpreter_update_config(PyThreadState *tstate, int only_update_path_config) in interpreter_update_config() 424 PyThreadState *tstate = _PyThreadState_GET(); in _PyInterpreterState_SetConfig() local 473 PyThreadState *tstate = _PyThreadState_GET(); in pyinit_core_reconfigure() local 607 init_interp_create_gil(PyThreadState *tstate, int gil) in init_interp_create_gil() 687 PyThreadState *tstate = _PyThreadState_New(interp, in pycore_create_interpreter() local 782 pycore_init_builtins(PyThreadState *tstate) in pycore_init_builtins() 850 pycore_interp_init(PyThreadState *tstate) in pycore_interp_init() 933 PyThreadState *tstate; in pyinit_config() local 1122 pyinit_main_reconfigure(PyThreadState *tstate) in pyinit_main_reconfigure() 1133 run_presite(PyThreadState *tstate) in run_presite() [all …]
|
D | intrinsics.c | 19 no_intrinsic1(PyThreadState* tstate, PyObject *unused) in no_intrinsic1() 26 print_expr(PyThreadState* tstate, PyObject *value) in print_expr() 39 import_all_from(PyThreadState *tstate, PyObject *locals, PyObject *v) in import_all_from() 123 import_star(PyThreadState* tstate, PyObject *from) in import_star() 142 stopiteration_error(PyThreadState* tstate, PyObject *exc) in stopiteration_error() 229 no_intrinsic2(PyThreadState* tstate, PyObject *unused1, PyObject *unused2) in no_intrinsic2()
|
D | critical_section.c | 15 PyThreadState *tstate = _PyThreadState_GET(); in _PyCriticalSection_BeginSlow() local 30 PyThreadState *tstate = _PyThreadState_GET(); in _PyCriticalSection2_BeginSlow() local 56 _PyCriticalSection_SuspendAll(PyThreadState *tstate) in _PyCriticalSection_SuspendAll() 80 _PyCriticalSection_Resume(PyThreadState *tstate) in _PyCriticalSection_Resume()
|
D | sysmodule.c | 74 _PySys_GetAttr(PyThreadState *tstate, PyObject *name) in _PySys_GetAttr() 106 PyThreadState *tstate = _PyThreadState_GET(); in PySys_GetObject() local 318 _PySys_Audit(PyThreadState *tstate, const char *event, in _PySys_Audit() 331 PyThreadState *tstate = _PyThreadState_GET(); in PySys_Audit() local 420 PyThreadState *tstate; in PySys_AddAuditHook() local 472 PyThreadState *tstate = _PyThreadState_GET(); in sys_addaudithook_impl() local 510 PyThreadState *tstate = _PyThreadState_GET(); in sys_audit() local 562 PyThreadState *tstate = _PyThreadState_GET(); in sys_breakpointhook() local 731 PyThreadState *tstate = _PyThreadState_GET(); in sys_displayhook() local 1020 call_trampoline(PyThreadState *tstate, PyObject* callback, in call_trampoline() [all …]
|
D | legacy_tracing.c | 36 PyThreadState *tstate = _PyThreadState_GET(); in call_profile_func() local 172 PyThreadState *tstate = _PyThreadState_GET(); in call_trace_func() local 289 PyThreadState *tstate = _PyThreadState_GET(); in sys_trace_instruction_func() local 308 PyThreadState *tstate, _PyLegacyEventHandler *self, in trace_line() 334 PyThreadState *tstate = _PyThreadState_GET(); in sys_trace_line_func() local 360 PyThreadState *tstate = _PyThreadState_GET(); in sys_trace_jump_func() local 430 is_tstate_valid(PyThreadState *tstate) in is_tstate_valid() 439 setup_profile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg, PyObject **old_profileobj) in setup_profile() 492 _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg) in _PyEval_SetProfile() 524 setup_tracing(PyThreadState *tstate, Py_tracefunc func, PyObject *arg, PyObject **old_traceobj) in setup_tracing() [all …]
|
D | brc.c | 68 _PyThreadStateImpl *tstate = find_thread_state(bucket, ob_tid); in _Py_brc_queue_object() local 117 _Py_brc_merge_refcounts(PyThreadState *tstate) in _Py_brc_merge_refcounts() 144 _Py_brc_init_thread(PyThreadState *tstate) in _Py_brc_init_thread() 158 _Py_brc_remove_thread(PyThreadState *tstate) in _Py_brc_remove_thread()
|
D | import.c | 159 get_modules_dict(PyThreadState *tstate, bool fatal) in get_modules_dict() 181 PyThreadState *tstate = _PyThreadState_GET(); in PyImport_GetModuleDict() local 188 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_SetModule() local 196 PyThreadState *tstate = _PyThreadState_GET(); in _PyImport_SetModuleString() local 202 import_get_module(PyThreadState *tstate, PyObject *name) in import_get_module() 249 PyThreadState *tstate = _PyThreadState_GET(); in PyImport_GetModule() local 268 import_add_module(PyThreadState *tstate, PyObject *name) in import_add_module() 301 PyThreadState *tstate = _PyThreadState_GET(); in PyImport_AddModuleRef() local 311 PyThreadState *tstate = _PyThreadState_GET(); in PyImport_AddModuleObject() local 364 remove_module(PyThreadState *tstate, PyObject *name) in remove_module() [all …]
|
D | qsbr.c | 71 _PyThreadStateImpl *tstate = (_PyThreadStateImpl *)qsbr->tstate; in initialize_new_array() local 220 _Py_qsbr_register(_PyThreadStateImpl *tstate, PyInterpreterState *interp, in _Py_qsbr_register() 235 _Py_qsbr_unregister(PyThreadState *tstate) in _Py_qsbr_unregister() 273 _Py_qsbr_after_fork(_PyThreadStateImpl *tstate) in _Py_qsbr_after_fork()
|
D | crossinterp_data_lookup.h | 314 _bytes_shared(PyThreadState *tstate, PyObject *obj, in _bytes_shared() 348 _str_shared(PyThreadState *tstate, PyObject *obj, in _str_shared() 374 _long_shared(PyThreadState *tstate, PyObject *obj, in _long_shared() 404 _float_shared(PyThreadState *tstate, PyObject *obj, in _float_shared() 429 _none_shared(PyThreadState *tstate, PyObject *obj, in _none_shared() 450 _bool_shared(PyThreadState *tstate, PyObject *obj, in _bool_shared() 507 _tuple_shared(PyThreadState *tstate, PyObject *obj, in _tuple_shared()
|
D | pythonrun.c | 112 PyThreadState *tstate = _PyThreadState_GET(); in _PyRun_InteractiveLoopObject() local 182 PyThreadState *tstate = _PyThreadState_GET(); in pyrun_one_parse_ast() local 287 PyThreadState *tstate = _PyThreadState_GET(); in PyRun_InteractiveOneObjectEx() local 624 PyThreadState *tstate = _PyThreadState_GET(); in _Py_HandleSystemExit() local 655 _PyErr_PrintEx(PyThreadState *tstate, int set_sys_last_vars) in _PyErr_PrintEx() 726 _PyErr_Print(PyThreadState *tstate) in _PyErr_Print() 734 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_PrintEx() local 1168 PyThreadState *tstate = _PyThreadState_GET(); in PyErr_Display() local 1283 flush_io_stream(PyThreadState *tstate, PyObject *name) in flush_io_stream() 1296 PyThreadState *tstate = _PyThreadState_GET(); in flush_io() local [all …]
|
/external/python/cpython3/Objects/ |
D | call.c | 14 null_error(PyThreadState *tstate) in null_error() 25 _Py_CheckFunctionResult(PyThreadState *tstate, PyObject *callable, in _Py_CheckFunctionResult() 77 PyThreadState *tstate = _PyThreadState_GET(); in _Py_CheckSlotResult() local 105 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_CallNoArgs() local 111 _PyObject_VectorcallDictTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_VectorcallDictTstate() 158 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_VectorcallDict() local 163 object_is_not_callable(PyThreadState *tstate, PyObject *callable) in object_is_not_callable() 200 _PyObject_MakeTpCall(PyThreadState *tstate, PyObject *callable, in _PyObject_MakeTpCall() 264 _PyVectorcall_Call(PyThreadState *tstate, vectorcallfunc func, in _PyVectorcall_Call() 296 PyThreadState *tstate = _PyThreadState_GET(); in PyVectorcall_Call() local [all …]
|
D | methodobject.c | 383 cfunction_check_kwargs(PyThreadState *tstate, PyObject *func, PyObject *kwnames) in cfunction_check_kwargs() 402 cfunction_enter_call(PyThreadState *tstate, PyObject *func) in cfunction_enter_call() 415 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL() local 434 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL_KEYWORDS() local 450 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_FASTCALL_KEYWORDS_METHOD() local 466 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_NOARGS() local 494 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_vectorcall_O() local 524 PyThreadState *tstate = _PyThreadState_GET(); in cfunction_call() local
|
/external/pytorch/torch/csrc/dynamo/ |
D | eval_frame.c | 181 PyThreadState* tstate, in custom_eval_frame_shim() 188 PyThreadState* tstate = PyThreadState_GET(); in custom_eval_frame_shim() local 194 PyThreadState* tstate, in eval_frame_default() 212 inline static void enable_eval_frame_shim(PyThreadState* tstate) { in enable_eval_frame_shim() 229 inline static void enable_eval_frame_default(PyThreadState* tstate) { in enable_eval_frame_default() 285 PyThreadState* tstate, in clear_old_frame_if_python_312_plus() 296 PyThreadState* tstate, in eval_custom_code_impl() 483 PyThreadState* tstate, in eval_custom_code() 502 PyThreadState* tstate, in _custom_eval_frame_shim() 533 PyThreadState* tstate, in _custom_eval_frame() [all …]
|
D | cpython_defs.c | 410 push_chunk(PyThreadState *tstate, int size) in push_chunk() 436 THP_PyThreadState_HasStackSpace(PyThreadState *tstate, size_t size) in THP_PyThreadState_HasStackSpace() 449 THP_PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size) in THP_PyThreadState_BumpFramePointerSlow() 465 THP_PyThreadState_PopFrame(PyThreadState *tstate, _PyInterpreterFrame * frame) in THP_PyThreadState_PopFrame()
|
/external/python/cpython3/Parser/ |
D | myreadline.c | 39 my_fgets(PyThreadState* tstate, char *buf, int len, FILE *fp) in my_fgets() 128 _PyOS_WindowsConsoleReadline(PyThreadState *tstate, HANDLE hStdIn) in _PyOS_WindowsConsoleReadline() 260 PyThreadState *tstate = _PyOS_ReadlineTState; in PyOS_StdioReadline() local 375 PyThreadState *tstate = _PyThreadState_GET(); in PyOS_Readline() local
|
/external/pytorch/torch/csrc/utils/ |
D | pythoncapi_compat.h | 301 PyThreadState_GetInterpreter(PyThreadState *tstate) in PyThreadState_GetInterpreter() 312 PyThreadState_GetFrame(PyThreadState *tstate) in PyThreadState_GetFrame() 321 _PyThreadState_GetFrameBorrow(PyThreadState *tstate) in _PyThreadState_GetFrameBorrow() 335 PyThreadState *tstate; in PyInterpreterState_Get() local 364 PyThreadState_EnterTracing(PyThreadState *tstate) in PyThreadState_EnterTracing() 378 PyThreadState_LeaveTracing(PyThreadState *tstate) in PyThreadState_LeaveTracing()
|