mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205)
Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204).
This commit is contained in:
parent
1c420e138f
commit
a9c6e0618f
99 changed files with 144 additions and 4 deletions
1
Python/Python-ast.c
generated
1
Python/Python-ast.c
generated
|
@ -12193,6 +12193,7 @@ astmodule_exec(PyObject *m)
|
|||
|
||||
static PyModuleDef_Slot astmodule_slots[] = {
|
||||
{Py_mod_exec, astmodule_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -151,6 +151,7 @@ static PyMethodDef tokenize_methods[] = {
|
|||
|
||||
static PyModuleDef_Slot tokenizemodule_slots[] = {
|
||||
{Py_mod_exec, tokenizemodule_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -1449,6 +1449,7 @@ warnings_module_exec(PyObject *module)
|
|||
|
||||
static PyModuleDef_Slot warnings_slots[] = {
|
||||
{Py_mod_exec, warnings_module_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -3840,6 +3840,7 @@ imp_module_exec(PyObject *module)
|
|||
|
||||
static PyModuleDef_Slot imp_slots[] = {
|
||||
{Py_mod_exec, imp_module_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -1870,6 +1870,7 @@ marshal_module_exec(PyObject *mod)
|
|||
|
||||
static PyModuleDef_Slot marshalmodule_slots[] = {
|
||||
{Py_mod_exec, marshal_module_exec},
|
||||
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
|
||||
{0, NULL}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue