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

Feedback on PyPy specific GC hooks #2648

Open
thedrow opened this Issue Oct 8, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@thedrow
Contributor

thedrow commented Oct 8, 2018

After I read this blog post about why emulating the CPython API is so hard for PyPy I raised the fact that we could introduce PyPy specific GC hooks for the cpyext layer in PyPy's IRC channel.
These would be used by Cython instead of Py_INCREF and Py_DECREF etc. to track the lifetime objects.
We're wondering what are the API requirements from Cython's side to implement such a thing.
How do you imagine such API to look like?
How hard would it be to generate code that uses those hooks?
What do you think that should happen if a Cython uses Py_INCREF or other memory management macro manually? Should this feature be hidden under a feature flag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment