[WIP] bpo-40533: Make PyObject.ob_refcnt atomic in subinterpreters#19958
[WIP] bpo-40533: Make PyObject.ob_refcnt atomic in subinterpreters#19958vstinner wants to merge 1 commit into
Conversation
When Python is built with experimental isolated interpreters, declare PyObject.ob_refcnt and _dictkeysobject.dk_refcnt as atomic variables. Temporary workaround until subinterpreters stop sharing Python objects.
Sorry, something went wrong.
|
Based on the discussion at https://mail.python.org/archives/list/python-committers@python.org/thread/2WHQBHFK7UQ7OYAJV5S2QCINODVVKGJY/#2WHQBHFK7UQ7OYAJV5S2QCINODVVKGJY, I think we should leave a |
Sorry, something went wrong.
Right, thanks. I converted this PR into a draft to ensure that nobody merges it by mistake. |
Sorry, something went wrong.
|
The current plan is to not share any object between two interpreters, so this PR is not needed. I close it. |
Sorry, something went wrong.
When Python is built with experimental isolated interpreters, declare
PyObject.ob_refcnt and _dictkeysobject.dk_refcnt as atomic variables.
Temporary workaround until subinterpreters stop sharing Python
objects.
https://bugs.python.org/issue40533