Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Jun 5, 2020

Each interpreter now has its own asynchronous generator free list:

  • Move async gen free lists into PyInterpreterState.
  • Free list arrays are now arrays of PyObject*, since
    _PyAsyncGenWrappedValue and PyAsyncGenASend structures are only
    defined in genobject.c.
  • Move _PyAsyncGen_MAXFREELIST define to pycore_interp.h
  • Add _Py_async_gen_state structure.
  • Add tstate parameter to _PyAsyncGen_ClearFreeLists
    and _PyAsyncGen_Fini().

https://bugs.python.org/issue40521

Each interpreter now has its own asynchronous generator free list: * Move async gen free lists into PyInterpreterState. * Free list arrays are now arrays of PyObject*, since _PyAsyncGenWrappedValue and PyAsyncGenASend structures are only defined in genobject.c. * Move _PyAsyncGen_MAXFREELIST define to pycore_interp.h * Add _Py_async_gen_state structure. * Add tstate parameter to _PyAsyncGen_ClearFreeLists and _PyAsyncGen_Fini().
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@the-knights-who-say-ni@bedevere-bot