Skip to content

Conversation

@Yhg1s
Copy link

@Yhg1s Yhg1s commented Jun 3, 2016

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.

@larryhastings
Copy link
Owner

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];
Copy link

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?

Copy link
Author

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.

@Yhg1s
Copy link
Author

Yhg1s commented Jun 21, 2016

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).

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

Successfully merging this pull request may close these issues.

3 participants