Skip to content

gh-132993: expose HASHLIB_GIL_MINSIZE to private extension modules #132999

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 7 commits into from
Apr 27, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Apr 26, 2025

@picnixz picnixz force-pushed the feat/hashlib/gil-minsize-132993 branch from d13077c to 4936441 Compare April 27, 2025 09:57
@picnixz picnixz force-pushed the feat/hashlib/gil-minsize-132993 branch from 4936441 to ca0ab3b Compare April 27, 2025 09:58
@picnixz picnixz requested a review from gpshead April 27, 2025 10:47
The pure Python implementation actually calls the underlying C
functions so in a sense we may still release the GIL.
@picnixz
Copy link
Member Author

picnixz commented Apr 27, 2025

I actually committed after your approval: it's just that I incorrectly skipped a test (the pure Python implementation still somehow releases the GIL as it calls the underlying C hash functions)

@picnixz picnixz enabled auto-merge (squash) April 27, 2025 22:00
@picnixz picnixz disabled auto-merge April 27, 2025 22:07
@picnixz
Copy link
Member Author

picnixz commented Apr 27, 2025

Mmh, I have a local issue if I disable _sha2. Will investigate.

@picnixz
Copy link
Member Author

picnixz commented Apr 27, 2025

Ok, nvm, it was because I didn't run make clean.

@picnixz picnixz enabled auto-merge (squash) April 27, 2025 22:10
@picnixz picnixz changed the title gh-132993: expose HASHLIB_GIL_MINSIZE to (private) extension modules gh-132993: expose HASHLIB_GIL_MINSIZE to private extension modules Apr 27, 2025
@picnixz picnixz merged commit 3695ba9 into python:main Apr 27, 2025
41 checks passed
@picnixz picnixz deleted the feat/hashlib/gil-minsize-132993 branch April 27, 2025 22:27
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.

2 participants