Lines Matching refs:core_config
401 _emit_stderr_warning_for_legacy_locale(const _PyCoreConfig *core_config) in _emit_stderr_warning_for_legacy_locale() argument
403 if (core_config->coerce_c_locale_warn) { in _emit_stderr_warning_for_legacy_locale()
596 const _PyCoreConfig *core_config) in _Py_Initialize_ReconfigureCore() argument
598 if (core_config->allocator != NULL) { in _Py_Initialize_ReconfigureCore()
600 if (allocator == NULL || strcmp(core_config->allocator, allocator) != 0) { in _Py_Initialize_ReconfigureCore()
606 _PyCoreConfig_SetGlobalConfig(core_config); in _Py_Initialize_ReconfigureCore()
608 if (_PyCoreConfig_Copy(&interp->core_config, core_config) < 0) { in _Py_Initialize_ReconfigureCore()
635 const _PyCoreConfig *core_config) in _Py_InitializeCore_impl() argument
654 return _Py_Initialize_ReconfigureCore(interp, core_config); in _Py_InitializeCore_impl()
658 _PyCoreConfig_SetGlobalConfig(core_config); in _Py_InitializeCore_impl()
665 if (core_config->allocator != NULL) { in _Py_InitializeCore_impl()
666 if (_PyMem_SetupAllocators(core_config->allocator) < 0) { in _Py_InitializeCore_impl()
690 _emit_stderr_warning_for_legacy_locale(core_config); in _Py_InitializeCore_impl()
693 err = _Py_HashRandomization_Init(core_config); in _Py_InitializeCore_impl()
698 if (!core_config->use_hash_seed || core_config->hash_seed) { in _Py_InitializeCore_impl()
714 if (_PyCoreConfig_Copy(&interp->core_config, core_config) < 0) { in _Py_InitializeCore_impl()
817 if (!interp->core_config._disable_importlib) { in _Py_InitializeCore_impl()
918 if (interp->core_config._disable_importlib) { in _Py_InitializeMainInterpreter()
942 err = _PyFaulthandler_Init(interp->core_config.faulthandler); in _Py_InitializeMainInterpreter()
959 if (_PyTraceMalloc_Init(interp->core_config.tracemalloc) < 0) in _Py_InitializeMainInterpreter()
1009 config = &interp->core_config; in _Py_InitializeFromConfig()
1150 int show_ref_count = interp->core_config.show_ref_count; in Py_FinalizeEx()
1153 int dump_refs = interp->core_config.dump_refs; in Py_FinalizeEx()
1156 int malloc_stats = interp->core_config.malloc_stats; in Py_FinalizeEx()
1385 _PyCoreConfig *core_config; in new_interpreter() local
1388 core_config = &save_tstate->interp->core_config; in new_interpreter()
1393 core_config = &main_interp->core_config; in new_interpreter()
1397 if (_PyCoreConfig_Copy(&interp->core_config, core_config) < 0) { in new_interpreter()
1622 interp->core_config.utf8_mode) in initfsencoding()
1904 if (interp->core_config.utf8_mode) { in init_sys_streams()