Home
last modified time | relevance | path

Searched refs:_PyRuntime (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Python/
Dceval_gil.h11 #define INTERVAL (_PyRuntime.ceval.gil.interval >= 1 ? _PyRuntime.ceval.gil.interval : 1)
105 return (_Py_atomic_load_explicit(&_PyRuntime.ceval.gil.locked, in gil_created()
112 MUTEX_INIT(_PyRuntime.ceval.gil.mutex); in create_gil()
114 MUTEX_INIT(_PyRuntime.ceval.gil.switch_mutex); in create_gil()
116 COND_INIT(_PyRuntime.ceval.gil.cond); in create_gil()
118 COND_INIT(_PyRuntime.ceval.gil.switch_cond); in create_gil()
120 _Py_atomic_store_relaxed(&_PyRuntime.ceval.gil.last_holder, 0); in create_gil()
121 _Py_ANNOTATE_RWLOCK_CREATE(&_PyRuntime.ceval.gil.locked); in create_gil()
122 _Py_atomic_store_explicit(&_PyRuntime.ceval.gil.locked, 0, in create_gil()
131 COND_FINI(_PyRuntime.ceval.gil.cond); in destroy_gil()
[all …]
Dpystate.c91 #define HEAD_LOCK() PyThread_acquire_lock(_PyRuntime.interpreters.mutex, \
93 #define HEAD_UNLOCK() PyThread_release_lock(_PyRuntime.interpreters.mutex)
170 interp->next = _PyRuntime.interpreters.head; in PyInterpreterState_New()
171 if (_PyRuntime.interpreters.main == NULL) { in PyInterpreterState_New()
172 _PyRuntime.interpreters.main = interp; in PyInterpreterState_New()
174 _PyRuntime.interpreters.head = interp; in PyInterpreterState_New()
175 if (_PyRuntime.interpreters.next_id < 0) { in PyInterpreterState_New()
182 interp->id = _PyRuntime.interpreters.next_id; in PyInterpreterState_New()
183 _PyRuntime.interpreters.next_id += 1; in PyInterpreterState_New()
239 for (p = &_PyRuntime.interpreters.head; ; p = &(*p)->next) { in PyInterpreterState_Delete()
[all …]
D_warnings.c106 assert(_PyRuntime.warnings.once_registry); in get_once_registry()
107 return _PyRuntime.warnings.once_registry; in get_once_registry()
117 Py_SETREF(_PyRuntime.warnings.once_registry, registry); in get_once_registry()
133 assert(_PyRuntime.warnings.default_action); in get_default_action()
134 return _PyRuntime.warnings.default_action; in get_default_action()
144 Py_SETREF(_PyRuntime.warnings.default_action, default_action); in get_default_action()
165 Py_SETREF(_PyRuntime.warnings.filters, warnings_filters); in get_filter()
168 PyObject *filters = _PyRuntime.warnings.filters; in get_filter()
259 || PyLong_AsLong(version_obj) != _PyRuntime.warnings.filters_version) in already_warned()
265 version_obj = PyLong_FromLong(_PyRuntime.warnings.filters_version); in already_warned()
[all …]
Dpylifecycle.c79 _PyRuntimeState _PyRuntime = _PyRuntimeState_INIT; variable
96 return _PyRuntimeState_Init(&_PyRuntime); in _PyRuntime_Initialize()
102 _PyRuntimeState_Fini(&_PyRuntime); in _PyRuntime_Finalize()
108 return _PyRuntime.finalizing != NULL; in _Py_IsFinalizing()
154 return _PyRuntime.core_initialized; in _Py_IsCoreInitialized()
160 return _PyRuntime.initialized; in Py_IsInitialized()
642 if (_PyRuntime.core_initialized) { in _Py_InitializeCore_impl()
671 if (_PyRuntime.initialized) { in _Py_InitializeCore_impl()
674 if (_PyRuntime.core_initialized) { in _Py_InitializeCore_impl()
687 _PyRuntime.finalizing = NULL; in _Py_InitializeCore_impl()
[all …]
Dceval.c92 #define GIL_REQUEST _Py_atomic_load_relaxed(&_PyRuntime.ceval.gil_drop_request)
99 &_PyRuntime.ceval.eval_breaker, \
101 _Py_atomic_load_relaxed(&_PyRuntime.ceval.pending.calls_to_do) | \
102 _PyRuntime.ceval.pending.async_exc)
106 _Py_atomic_store_relaxed(&_PyRuntime.ceval.gil_drop_request, 1); \
107 _Py_atomic_store_relaxed(&_PyRuntime.ceval.eval_breaker, 1); \
112 _Py_atomic_store_relaxed(&_PyRuntime.ceval.gil_drop_request, 0); \
119 _Py_atomic_store_relaxed(&_PyRuntime.ceval.pending.calls_to_do, 1); \
120 _Py_atomic_store_relaxed(&_PyRuntime.ceval.eval_breaker, 1); \
125 _Py_atomic_store_relaxed(&_PyRuntime.ceval.pending.calls_to_do, 0); \
[all …]
/external/python/cpython3/Modules/
Dgcmodule.c57 #define GEN_HEAD(n) (&_PyRuntime.gc.generations[n].head)
657 if (_PyRuntime.gc.garbage == NULL) { in handle_legacy_finalizers()
658 _PyRuntime.gc.garbage = PyList_New(0); in handle_legacy_finalizers()
659 if (_PyRuntime.gc.garbage == NULL) in handle_legacy_finalizers()
665 if ((_PyRuntime.gc.debug & DEBUG_SAVEALL) || has_legacy_finalizer(op)) { in handle_legacy_finalizers()
666 if (PyList_Append(_PyRuntime.gc.garbage, op) < 0) in handle_legacy_finalizers()
755 if (_PyRuntime.gc.debug & DEBUG_SAVEALL) { in delete_garbage()
756 PyList_Append(_PyRuntime.gc.garbage, op); in delete_garbage()
810 struct gc_generation_stats *stats = &_PyRuntime.gc.generation_stats[generation]; in collect()
812 if (_PyRuntime.gc.debug & DEBUG_STATS) { in collect()
[all …]
/external/python/cpython3/Include/internal/
Dpystate.h33 #define _PyThreadState_GetFrame _PyRuntime.gilstate.getframe
37 #define _PyGILState_check_enabled _PyRuntime.gilstate.check_enabled
113 PyAPI_DATA(_PyRuntimeState) _PyRuntime;
122 (_PyRuntime.finalizing == tstate)
Dmem.h146 #define _PyGC_generation0 _PyRuntime.gc.generation0
/external/python/cpython3/Objects/
Dobject.c2138 _Py_AS_GC(op)->gc.gc_prev = (PyGC_Head *)_PyRuntime.gc.trash_delete_later; in _PyTrash_deposit_object()
2139 _PyRuntime.gc.trash_delete_later = op; in _PyTrash_deposit_object()
2160 while (_PyRuntime.gc.trash_delete_later) { in _PyTrash_destroy_chain()
2161 PyObject *op = _PyRuntime.gc.trash_delete_later; in _PyTrash_destroy_chain()
2164 _PyRuntime.gc.trash_delete_later = in _PyTrash_destroy_chain()
2174 ++_PyRuntime.gc.trash_delete_nesting; in _PyTrash_destroy_chain()
2176 --_PyRuntime.gc.trash_delete_nesting; in _PyTrash_destroy_chain()
Dtypeobject.c1168 ++_PyRuntime.gc.trash_delete_nesting; in subtype_dealloc()
1171 --_PyRuntime.gc.trash_delete_nesting; in subtype_dealloc()
1265 ++_PyRuntime.gc.trash_delete_nesting; in subtype_dealloc()
1268 --_PyRuntime.gc.trash_delete_nesting; in subtype_dealloc()
/external/python/cpython3/Parser/
Dpgenmain.c30 _PyRuntimeState _PyRuntime = _PyRuntimeState_INIT; variable
/external/python/cpython3/Tools/c-globals/
DREADME32 consolidated under a single top-level _PyRuntime global. No new globals
Dignored-globals.txt61 _PyRuntime
/external/python/cpython3/Include/
Dpystate.h364 # define _PyThreadState_Current _PyRuntime.gilstate.tstate_current
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a3.rst42 _PyRuntime to Objects/obmalloc.c. The memory allocators are once again