◐ Shell
clean mode source ↗

gh-99108: Release the GIL around hashlib built-in computation by gpshead · Pull Request #104675 · python/cpython

added 2 commits

May 19, 2023 19:46
This matches the GIL releasing behavior of our existing `_hashopenssl`
module, extending it to the HACL* built-ins.

@gpshead gpshead changed the title gh-99108: Release the GIL around hashlib built-in hash updates. gh-99108: Release the GIL around hashlib built-in computation

May 20, 2023

@gpshead

@gpshead

@gpshead

msprotz

@gpshead gpshead marked this pull request as ready for review

May 22, 2023 23:03

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 23, 2023
…ythonGH-104675)

This matches the GIL releasing behavior of our existing `_hashopenssl`
module, extending it to the HACL* built-ins.

Includes adding comments to better describe the ENTER/LEAVE macros
purpose and explain the lock strategy in both existing and new code.
(cherry picked from commit 2e5d8a9)

Co-authored-by: Gregory P. Smith <greg@krypto.org>

@gpshead gpshead deleted the hashlib_hacl_dropGIL branch

May 23, 2023 00:22

gpshead added a commit that referenced this pull request

May 23, 2023
…H-104675) (#104776)

gh-99108: Release the GIL around hashlib built-in computation (GH-104675)

This matches the GIL releasing behavior of our existing `_hashopenssl`
module, extending it to the HACL* built-ins.

Includes adding comments to better describe the ENTER/LEAVE macros
purpose and explain the lock strategy in both existing and new code.
(cherry picked from commit 2e5d8a9)

Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>