summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-17 08:03:57 (GMT)
committerGitHub <noreply@github.com>2021-05-17 08:03:57 (GMT)
commit60fa8b32dbfe452b81c44d2b8a96325fb19a206d (patch)
tree8fe38e70da6c1418f6a4f810220853f47738d043 /Misc
parente6755ba94b629a51819c9c076626afc187cded9b (diff)
downloadcpython-60fa8b32dbfe452b81c44d2b8a96325fb19a206d.zip
cpython-60fa8b32dbfe452b81c44d2b8a96325fb19a206d.tar.gz
cpython-60fa8b32dbfe452b81c44d2b8a96325fb19a206d.tar.bz2
bpo-44145: Release the GIL around HMAC_Update. (GH-26157)
It was always meant to be released for parallelization. This now matches the other similar code in the module. Thanks michaelforney for noticing! (cherry picked from commit c10392e7ddb3eafbd11e9ffe335c07648426715f) Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-05-16-00-00-38.bpo-44145.ko5SJ7.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-05-16-00-00-38.bpo-44145.ko5SJ7.rst b/Misc/NEWS.d/next/Library/2021-05-16-00-00-38.bpo-44145.ko5SJ7.rst
new file mode 100644
index 0000000..4022218
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-05-16-00-00-38.bpo-44145.ko5SJ7.rst
@@ -0,0 +1,3 @@
+:mod:`hmac` computations were not releasing the GIL while calling the
+OpenSSL ``HMAC_Update`` C API (a new feature in 3.9). This unintentionally
+prevented parallel computation as other :mod:`hashlib` algorithms support.