Skip to content

bpo-33554: make_keys_shared reusing oldkeys memory#6932

Closed
br0wn9 wants to merge 2 commits intopython:masterfrom
br0wn9:fix-issue-33554
Closed

bpo-33554: make_keys_shared reusing oldkeys memory#6932
br0wn9 wants to merge 2 commits intopython:masterfrom
br0wn9:fix-issue-33554

Conversation

@br0wn9
Copy link
Copy Markdown

@br0wn9 br0wn9 commented May 17, 2018

bpo-33554: make_keys_shared reusing oldkeys memory

https://bugs.python.org/issue33554

@the-knights-who-say-ni
Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

When your account is ready, please add a comment in this pull request
and a Python core developer will remove the CLA not signed label
to make the bot check again.

Thanks again to your contribution and we look forward to looking at it!

@br0wn9
Copy link
Copy Markdown
Author

br0wn9 commented May 17, 2018

Already set github username

@br0wn9
Copy link
Copy Markdown
Author

br0wn9 commented May 17, 2018

I've just signed CLA, please recheck it.

Comment thread Objects/dictobject.c Outdated
/* Remove dummy keys */
if (dictresize(mp, DK_SIZE(mp->ma_keys)))
return NULL;
clear_dummy_keys(mp);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please use 4-space indent.

Comment thread Objects/dictobject.c Outdated
second = entries + 1;
end = entries + numentries;

for( ;; ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use for (;;) { or while (1) {.
We always insert space outer parens, not inner.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants