-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-42540: reallocation of id_mutex should not force default allocator #29564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
@vstinner, if you have some time would you also please look over this? An alternative fix would be to only allocate and free the |
Misc/NEWS.d/next/Core and Builtins/2021-11-15-12-08-27.bpo-42540.V2w107.rst
Outdated
Show resolved
Hide resolved
…40.V2w107.rst Co-authored-by: Victor Stinner <[email protected]>
Thanks for reviewing this @vstinner. I've updated the PR. |
Thanks @colesbury for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, @colesbury and @vstinner, I could not cleanly backport this to |
GH-29599 is a backport of this pull request to the 3.10 branch. |
pythonGH-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 736684b) Co-authored-by: Sam Gross <[email protected]>
On 3.9, there is a conflict since the code is different (reinit_unicode_ids didn't exist). Can you try to manually create a backport of your fix to 3.9? |
GH-29600 is a backport of this pull request to the 3.9 branch. |
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 736684b) Co-authored-by: Sam Gross <[email protected]>
…locator (GH-29564) (GH-29600) 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 736684b) Co-authored-by: Sam Gross <[email protected]>
pythonGH-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.
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.
https://bugs.python.org/issue42540