]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99108: Release the GIL around hashlib built-in computation (#104675)
authorGregory P. Smith <greg@krypto.org>
Tue, 23 May 2023 00:06:41 +0000 (17:06 -0700)
committerGitHub <noreply@github.com>
Tue, 23 May 2023 00:06:41 +0000 (00:06 +0000)
commit2e5d8a90aa633ff0bebc9b2b8e21eea389937b19
tree15a0de14265a20c453bb5c113625e48fb1b3a23c
parent988c1f68ce7f99f43322722c4a4f8f85b40bbcd8
gh-99108: Release the GIL around hashlib built-in computation (#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.
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