summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-19 22:27:46 (GMT)
committerGitHub <noreply@github.com>2020-05-19 22:27:46 (GMT)
commit9512ad74b0fcaff023c1ade75313dc8e249aef78 (patch)
treed8a0949f5e3cea7910a33b8ec7d723804e21d8dd /Include/internal
parentb008445a7b93c8c5d4773d33277c6fe815afca7b (diff)
downloadcpython-9512ad74b0fcaff023c1ade75313dc8e249aef78.zip
cpython-9512ad74b0fcaff023c1ade75313dc8e249aef78.tar.gz
cpython-9512ad74b0fcaff023c1ade75313dc8e249aef78.tar.bz2
[3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228)
Remove --with-experimental-isolated-subinterpreters configure option in Python 3.9: the experiment continues in the master branch, but it's no longer needed in 3.9.
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_ceval.h4
-rw-r--r--Include/internal/pycore_interp.h3
-rw-r--r--Include/internal/pycore_pystate.h12
-rw-r--r--Include/internal/pycore_runtime.h2
4 files changed, 0 insertions, 21 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index 3689900..18c8f02 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -50,11 +50,7 @@ extern PyObject *_PyEval_EvalCode(
PyObject *kwdefs, PyObject *closure,
PyObject *name, PyObject *qualname);
-#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
-extern int _PyEval_ThreadsInitialized(PyInterpreterState *interp);
-#else
extern int _PyEval_ThreadsInitialized(struct pyruntimestate *runtime);
-#endif
extern PyStatus _PyEval_InitGIL(PyThreadState *tstate);
extern void _PyEval_FiniGIL(PyThreadState *tstate);
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h
index f04ea33..551ad83 100644
--- a/Include/internal/pycore_interp.h
+++ b/Include/internal/pycore_interp.h
@@ -46,9 +46,6 @@ struct _ceval_state {
/* Request for dropping the GIL */
_Py_atomic_int gil_drop_request;
struct _pending_calls pending;
-#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
- struct _gil_runtime_state gil;
-#endif
};
/* fs_codec.encoding is initialized to NULL.
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index d96ba31..8dc64db 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -49,18 +49,10 @@ _Py_ThreadCanHandlePendingCalls(void)
/* Variable and macro for in-line access to current thread
and interpreter state */
-#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
-PyAPI_FUNC(PyThreadState*) _PyThreadState_GetTSS(void);
-#endif
-
static inline PyThreadState*
_PyRuntimeState_GetThreadState(_PyRuntimeState *runtime)
{
-#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
- return _PyThreadState_GetTSS();
-#else
return (PyThreadState*)_Py_atomic_load_relaxed(&runtime->gilstate.tstate_current);
-#endif
}
/* Get the current Python thread state.
@@ -75,11 +67,7 @@ _PyRuntimeState_GetThreadState(_PyRuntimeState *runtime)
static inline PyThreadState*
_PyThreadState_GET(void)
{
-#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
- return _PyThreadState_GetTSS();
-#else
return _PyRuntimeState_GetThreadState(&_PyRuntime);
-#endif
}
/* Redefine PyThreadState_GET() as an alias to _PyThreadState_GET() */
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h
index ebdc12b..34eb492 100644
--- a/Include/internal/pycore_runtime.h
+++ b/Include/internal/pycore_runtime.h
@@ -19,9 +19,7 @@ struct _ceval_runtime_state {
the main thread of the main interpreter can handle signals: see
_Py_ThreadCanHandleSignals(). */
_Py_atomic_int signals_pending;
-#ifndef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
struct _gil_runtime_state gil;
-#endif
};
/* GIL state */