Skip to content

Commit

Permalink
Revert "pythongh-128691: Use deferred reference counting on `_thread.…
Browse files Browse the repository at this point in the history
…_local` (python#128693)"

This reverts commit c141748.
  • Loading branch information
hugovk committed Jan 12, 2025
1 parent 5ace717 commit 26de5be
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Modules/_threadmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,10 +1414,6 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
return NULL;
}

// gh-128691: Use deferred reference counting for thread-locals to avoid
// contention on the shared object.
_PyObject_SetDeferredRefcount((PyObject *)self);

self->args = Py_XNewRef(args);
self->kw = Py_XNewRef(kw);

Expand Down

0 comments on commit 26de5be

Please sign in to comment.