-
Notifications
You must be signed in to change notification settings - Fork 43
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
Remote headers #16
base: gilectomy
Are you sure you want to change the base?
Remote headers #16
Conversation
…-git into remote-headers
…-git into remote-headers
I apologize for introducing conflicts into your merge request. But the whole platform abstraction was icky cubed. |
last_page[LAST_REFCOUNTLINK].link = new_page; | ||
new_page[0].link = last_page; | ||
last_page = new_page; | ||
diff = &new_page[1] - &new_page[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a sizeof(refcountlink)
to me, why do it this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's sizeof(refcountlink) only when the size is a multiple of the alignment. This automatically takes care of the alignment.
FYI, I'm still working on this, but as a patch to regular trunk first -- so that I can test it more broadly than gilectomy allows. This version of the patch has a few leaks, at least (Py_ForgetReference() isn't always called). |
Implement remote refcounts, storing a pointer to a refcount, which are allocated in blocks. The blocks aren't freed and there is no detection of refcount-value-leaks (different from refleaks) just yet. I have things in mind for both of them.