Skip to content

gh-130312: SET_ADD should not lock #130136

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

Merged
merged 4 commits into from
Mar 21, 2025
Merged

gh-130312: SET_ADD should not lock #130136

merged 4 commits into from
Mar 21, 2025

Conversation

DinoV
Copy link
Contributor

@DinoV DinoV commented Feb 14, 2025

@DinoV DinoV changed the title gh-xxxxx: SET_ADD should not lock gh-130312: SET_ADD should not lock Feb 19, 2025
@DinoV DinoV marked this pull request as ready for review February 19, 2025 18:08
@DinoV DinoV requested review from colesbury and mpage February 19, 2025 18:11
Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

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

LGTM.

One minor formatting comment below

Comment on lines 967 to 980
int err = _PySet_AddTakeRef((PySetObject *)PyStackRef_AsPyObjectBorrow(set),
PyStackRef_AsPyObjectSteal(v));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
int err = _PySet_AddTakeRef((PySetObject *)PyStackRef_AsPyObjectBorrow(set),
PyStackRef_AsPyObjectSteal(v));
int err = _PySet_AddTakeRef((PySetObject *)PyStackRef_AsPyObjectBorrow(set),
PyStackRef_AsPyObjectSteal(v));

@mpage
Copy link
Contributor

mpage commented Mar 17, 2025

@DinoV - Can this be merged?

@DinoV DinoV force-pushed the set_add_nolock branch 5 times, most recently from 557ee19 to 73fac71 Compare March 20, 2025 16:36
@DinoV DinoV merged commit d9411ae into python:main Mar 21, 2025
48 of 50 checks passed
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
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.

3 participants