Skip to content

Support free-threaded python 3.13+  #711

Description

@benfred

Python 3.13 adds the ability to have a free-threaded python interpreter - which doesn't have a GIL.

py-spy doesn't currently work against free-threaded python interpreters, because:

  • PyObject layout is different : instead of just containing a ob_refcnt and ob_type members - with Py_GIL_DISABLED interpreters the PyObject has additional members (threadid/mutex/ etc)
  • MANAGED_DICT_OFFSET is different

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions