-
-
Notifications
You must be signed in to change notification settings - Fork 106
use Py_REFCNT(obj) instead of obj->ob_refcnt (allows building in nogil) #201
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
Conversation
use Py_REFCNT(obj) instead of obj->ob_refcnt
|
I think assuming There is a new API being proposed for CPython: |
|
The
There's no concern about racing accesses to the refcount here in the free threading build. It's a lot more straightforward than the NumPy because the |
|
I've cherry picked this and will push it directly. PR will be marked as closed but it is in fact merged. |
|
Thanks @indygreg! Appreciate your great work on this. |
|
I thought I saw this commit pass CI. But it definitely resulted in crashes after the merge to Some of the wheel build logs show a compiler error likely pointing at the source of the bug. https://github.com/indygreg/python-zstandard/actions/runs/17011229015/job/48227527781 |
here’s a suggestion from @colesbury: