]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-99108: Release the GIL around hashlib built-in computation (GH-104675)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 23 May 2023 11:24:02 +0000 (04:24 -0700)
committerGitHub <noreply@github.com>
Tue, 23 May 2023 11:24:02 +0000 (11:24 +0000)
commit9aea1f28e2d22dd8650f6153eb5630ffd250d3c8
tree3d4c0b3317818e8aa093efa6488e3ea00faf01f5
parente43fbbd92884ad167cdaea296526c671f593b234
[3.12] gh-99108: Release the GIL around hashlib built-in computation (GH-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 2e5d8a90aa633ff0bebc9b2b8e21eea389937b19)

Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
Misc/NEWS.d/next/Library/2023-05-19-19-46-22.gh-issue-99108.wqCg0t.rst [new file with mode: 0644]
Modules/_hashopenssl.c
Modules/hashlib.h
Modules/md5module.c
Modules/sha1module.c
Modules/sha2module.c
Modules/sha3module.c