]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Nov 2021 21:16:01 +0000 (13:16 -0800)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 21:16:01 +0000 (13:16 -0800)
commit1079b3e3cb3eba7062e174ecc6c0ab20c2d0722e
treedf58ef9fb98a902a9b8a8e8d56eaec04fd188083
parent5618c81e139419b4665dc1f1e8a468738546f542
bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)

Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads,
the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini
and should not force the default raw allocator.
(cherry picked from commit 736684b1bb67369a2e95a9f621752deead44e7ef)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/test_os.py
Misc/NEWS.d/next/Core and Builtins/2021-11-15-12-08-27.bpo-42540.V2w107.rst [new file with mode: 0644]
Python/pystate.c