Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support free-threaded python 3.13+ #711

Open
benfred opened this issue Oct 23, 2024 · 0 comments
Open

Support free-threaded python 3.13+ #711

benfred opened this issue Oct 23, 2024 · 0 comments

Comments

@benfred
Copy link
Owner

benfred commented Oct 23, 2024

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
@benfred benfred mentioned this issue Oct 23, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant