gh-111968: Use per-thread freelists for PyContext in free-threading (gh-114122)

This commit is contained in:
Donghee Na 2024-01-17 01:14:56 +09:00 committed by GitHub
parent d2d8332f71
commit 867f59f234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 48 deletions

View file

@ -16,7 +16,6 @@ _PyGC_ClearAllFreeLists(PyInterpreterState *interp)
{
_PyDict_ClearFreeList(interp);
_PyAsyncGen_ClearFreeLists(interp);
_PyContext_ClearFreeList(interp);
HEAD_LOCK(&_PyRuntime);
_PyThreadStateImpl *tstate = (_PyThreadStateImpl *)interp->threads.head;