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

Issue33: pickle mem leak #41

Merged
merged 2 commits into from
Aug 16, 2020
Merged

Conversation

isamaru
Copy link
Contributor

@isamaru isamaru commented Oct 6, 2019

Solves #33

Fixes memory leaking of objects when pickling.
@@ -393,7 +393,7 @@ CMS_VARIANT(_reduce)(CMS_TYPE *self)
return NULL;
PyList_SetItem(state_table, self->depth, hll);
PyList_SetItem(state_table, self->depth + 1, Py_BuildValue("i", self->total));
return Py_BuildValue("(OOO)", Py_TYPE(self), args, state_table);
return Py_BuildValue("(ONN)", Py_TYPE(self), args, state_table);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"O" further increases reference count, causing memory leak. "N" is the same as "O" but does not increase reference counts.

@isamaru
Copy link
Contributor Author

isamaru commented Oct 6, 2019

@menshikh-iv Py3.3 should be removed from CI, the required image is no longer present

@piskvorky
Copy link
Owner

Thanks @isamaru . CC @mpenkov – can you have a look?

@mpenkov
Copy link
Collaborator

mpenkov commented Oct 7, 2019

@isamaru Can you please merge master into this PR? That should take care of the CI problem.

@jonsnowseven
Copy link

@isamaru @mpenkov, Is this PR going to be merged soon? Thank you in advance.

@mpenkov
Copy link
Collaborator

mpenkov commented Oct 14, 2019

We can't merge this until the tests pass. I was hoping that @isamaru can take care of that.

@piskvorky
Copy link
Owner

piskvorky commented Oct 14, 2019

Looks like Python 3.3 is no longer available for CI.

@jonsnowseven
Copy link

Hello. Just wanted to do a ping regarding this PR. Thank you in advance.

@jonsnowseven
Copy link

jonsnowseven commented Nov 12, 2019

@mpenkov and @isamaru, any news? Thank you in advance.

@jonsnowseven
Copy link

Any news on this PR, @isamaru @mpenkov? Thank you in advance.

@piskvorky
Copy link
Owner

Thanks for bumping this @jonsnowseven. @mpenkov if OK, can you merge & release please?

@mpenkov
Copy link
Collaborator

mpenkov commented Aug 16, 2020

@isamaru Thank you for the contribution.

@piskvorky and @jonsnowseven Thank you for the reminders, finally got around to taking care of this.

@mpenkov mpenkov merged commit 2cff8cf into piskvorky:master Aug 16, 2020
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.

4 participants