Skip to content

Commit 26de5be

Browse files
committed
Revert "pythongh-128691: Use deferred reference counting on _thread._local (python#128693)"
This reverts commit c141748.
1 parent 5ace717 commit 26de5be

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Modules/_threadmodule.c

-4
Original file line numberDiff line numberDiff line change
@@ -1414,10 +1414,6 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
14141414
return NULL;
14151415
}
14161416

1417-
// gh-128691: Use deferred reference counting for thread-locals to avoid
1418-
// contention on the shared object.
1419-
_PyObject_SetDeferredRefcount((PyObject *)self);
1420-
14211417
self->args = Py_XNewRef(args);
14221418
self->kw = Py_XNewRef(kw);
14231419

0 commit comments

Comments
 (0)