Skip to content

Tracking issue for no-gil/freethreaded work #4265

@alex

Description

@alex

We didn't have a dedicated issue for this, so now there's one.

TODO:

  • Add a cfg for no-gil, but only allowed behind an experimental feature
  • ffi-check passing with a no-GIL build
  • Adopt new owned-reference-friendly C APIs
    • PyDict_GetItemRef
    • PyList_GetItemRef
    • PyDict_Next
    • PyWeakref_GetRef
    • PyImport_AddModuleRef
  • Identify places that assume a Python<'_> indicates only a single thread is executing:
    • pyo3::sync::GILOnceCell
    • PyClassBorrowChecker
    • GILProtected
    • PyErrState::normalize
    • ...
  • A way for extensions to declare that the Py_mod_gil slot should be set
  • pyo3_ffi datetime bindings are not thread safe (?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions