• Home
  • Raw
  • Download

Lines Matching refs:interp

11     (GET_TSTATE()->interp)
72 PyInterpreterState *interp = (PyInterpreterState *) in PyInterpreterState_New() local
75 if (interp != NULL) { in PyInterpreterState_New()
81 interp->modules = NULL; in PyInterpreterState_New()
82 interp->modules_by_index = NULL; in PyInterpreterState_New()
83 interp->sysdict = NULL; in PyInterpreterState_New()
84 interp->builtins = NULL; in PyInterpreterState_New()
85 interp->builtins_copy = NULL; in PyInterpreterState_New()
86 interp->tstate_head = NULL; in PyInterpreterState_New()
87 interp->codec_search_path = NULL; in PyInterpreterState_New()
88 interp->codec_search_cache = NULL; in PyInterpreterState_New()
89 interp->codec_error_registry = NULL; in PyInterpreterState_New()
90 interp->codecs_initialized = 0; in PyInterpreterState_New()
91 interp->fscodec_initialized = 0; in PyInterpreterState_New()
92 interp->importlib = NULL; in PyInterpreterState_New()
93 interp->import_func = NULL; in PyInterpreterState_New()
94 interp->eval_frame = _PyEval_EvalFrameDefault; in PyInterpreterState_New()
97 interp->dlopenflags = RTLD_NOW; in PyInterpreterState_New()
99 interp->dlopenflags = RTLD_LAZY; in PyInterpreterState_New()
104 interp->next = interp_head; in PyInterpreterState_New()
105 interp_head = interp; in PyInterpreterState_New()
109 return interp; in PyInterpreterState_New()
114 PyInterpreterState_Clear(PyInterpreterState *interp) in PyInterpreterState_Clear() argument
118 for (p = interp->tstate_head; p != NULL; p = p->next) in PyInterpreterState_Clear()
121 Py_CLEAR(interp->codec_search_path); in PyInterpreterState_Clear()
122 Py_CLEAR(interp->codec_search_cache); in PyInterpreterState_Clear()
123 Py_CLEAR(interp->codec_error_registry); in PyInterpreterState_Clear()
124 Py_CLEAR(interp->modules); in PyInterpreterState_Clear()
125 Py_CLEAR(interp->modules_by_index); in PyInterpreterState_Clear()
126 Py_CLEAR(interp->sysdict); in PyInterpreterState_Clear()
127 Py_CLEAR(interp->builtins); in PyInterpreterState_Clear()
128 Py_CLEAR(interp->builtins_copy); in PyInterpreterState_Clear()
129 Py_CLEAR(interp->importlib); in PyInterpreterState_Clear()
130 Py_CLEAR(interp->import_func); in PyInterpreterState_Clear()
135 zapthreads(PyInterpreterState *interp) in zapthreads() argument
140 while ((p = interp->tstate_head) != NULL) { in zapthreads()
147 PyInterpreterState_Delete(PyInterpreterState *interp) in PyInterpreterState_Delete() argument
150 zapthreads(interp); in PyInterpreterState_Delete()
156 if (*p == interp) in PyInterpreterState_Delete()
159 if (interp->tstate_head != NULL) in PyInterpreterState_Delete()
161 *p = interp->next; in PyInterpreterState_Delete()
163 PyMem_RawFree(interp); in PyInterpreterState_Delete()
181 new_threadstate(PyInterpreterState *interp, int init) in new_threadstate() argument
189 tstate->interp = interp; in new_threadstate()
237 tstate->next = interp->tstate_head; in new_threadstate()
240 interp->tstate_head = tstate; in new_threadstate()
248 PyThreadState_New(PyInterpreterState *interp) in PyThreadState_New() argument
250 return new_threadstate(interp, 1); in PyThreadState_New()
254 _PyThreadState_Prealloc(PyInterpreterState *interp) in _PyThreadState_Prealloc() argument
256 return new_threadstate(interp, 0); in _PyThreadState_Prealloc()
420 PyInterpreterState *interp; in tstate_delete_common() local
423 interp = tstate->interp; in tstate_delete_common()
424 if (interp == NULL) in tstate_delete_common()
430 interp->tstate_head = tstate->next; in tstate_delete_common()
481 PyInterpreterState *interp = tstate->interp; in _PyThreadState_DeleteExcept() local
487 garbage = interp->tstate_head; in _PyThreadState_DeleteExcept()
495 interp->tstate_head = tstate; in _PyThreadState_DeleteExcept()
543 if (check && check->interp == newts->interp && check != newts) in PyThreadState_Swap()
584 PyInterpreterState *interp = GET_INTERP_STATE(); in PyThreadState_SetAsyncExc() local
594 for (p = interp->tstate_head; p != NULL; p = p->next) { in PyThreadState_SetAsyncExc()
627 PyInterpreterState_Next(PyInterpreterState *interp) { in PyInterpreterState_Next() argument
628 return interp->next; in PyInterpreterState_Next()
632 PyInterpreterState_ThreadHead(PyInterpreterState *interp) { in PyInterpreterState_ThreadHead() argument
633 return interp->tstate_head; in PyInterpreterState_ThreadHead()