summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2025-04-29 06:38:29 (GMT)
committerGitHub <noreply@github.com>2025-04-29 06:38:29 (GMT)
commiteecafc33800c84ecb67f5d3ed819fbed057677ab (patch)
tree07d41adf24f52d8a1f9c739cf016c890920ea788 /Python
parent219b1f9d1d97e271213fe324b94ed544e890630b (diff)
downloadcpython-eecafc33800c84ecb67f5d3ed819fbed057677ab.zip
cpython-eecafc33800c84ecb67f5d3ed819fbed057677ab.tar.gz
cpython-eecafc33800c84ecb67f5d3ed819fbed057677ab.tar.bz2
Revert gh-127266: avoid data races when updating type slots (gh-131174) (gh-133129)
This is triggering deadlocks in test_opcache. See GH-133130 for stack trace.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index b7b7f9c..fb72fd4 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -138,19 +138,6 @@
#endif
-static void
-check_invalid_reentrancy(void)
-{
-#if defined(Py_DEBUG) && defined(Py_GIL_DISABLED)
- // In the free-threaded build, the interpreter must not be re-entered if
- // the world-is-stopped. If so, that's a bug somewhere (quite likely in
- // the painfully complex typeobject code).
- PyInterpreterState *interp = _PyInterpreterState_GET();
- assert(!interp->stoptheworld.world_stopped);
-#endif
-}
-
-
#ifdef Py_DEBUG
static void
dump_item(_PyStackRef item)
@@ -1008,7 +995,6 @@ PyObject* _Py_HOT_FUNCTION DONT_SLP_VECTORIZE
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
_Py_EnsureTstateNotNULL(tstate);
- check_invalid_reentrancy();
CALL_STAT_INC(pyeval_calls);
#if USE_COMPUTED_GOTOS && !Py_TAIL_CALL_INTERP