]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111916: Make hashlib related modules thread-safe without the GIL (#111981)
authorTomas R <tomas.roun8@gmail.com>
Wed, 15 Nov 2023 23:53:38 +0000 (00:53 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 23:53:38 +0000 (23:53 +0000)
commita6465605c1417792ec04ced88340cdf104a402b6
treeb2e37deeaf10018fe0273052e561d265c9fb498e
parent7218bac8c84115a8e9a18a4a8f3146235068facb
gh-111916: Make hashlib related modules thread-safe without the GIL (#111981)

Always use an individual lock on hash objects when in free-threaded builds.

Fixes #111916
Misc/NEWS.d/next/Core and Builtins/2023-11-14-22-12-11.gh-issue-111916.ZGCayL.rst [new file with mode: 0644]
Modules/_blake2/blake2b_impl.c
Modules/_blake2/blake2s_impl.c
Modules/_hashopenssl.c
Modules/clinic/md5module.c.h
Modules/hashlib.h
Modules/md5module.c
Modules/sha1module.c
Modules/sha2module.c
Modules/sha3module.c