]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-81057: Move _Py_RefTotal to the "Ignored Globals" List (gh-100203)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 12 Dec 2022 23:51:27 +0000 (16:51 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 23:51:27 +0000 (16:51 -0700)
We can't move it to _PyRuntimeState because the symbol is exposed in the stable ABI. We'll have to sort that out before a per-interpreter GIL, but it shouldn't be too hard.

https://github.com/python/cpython/issues/81057

Tools/c-analyzer/cpython/globals-to-fix.tsv
Tools/c-analyzer/cpython/ignored.tsv

index fcec95bbb2f74c671c6b2e7788628a3dc92c7d9f..479221cbd4b68286b5ee351c6854635461b32df1 100644 (file)
@@ -302,10 +302,7 @@ Objects/sliceobject.c      -       _Py_EllipsisObject      -
 ##################################
 ## global non-objects to fix in core code
 
-##-----------------------
-## state
-
-Objects/object.c       -       _Py_RefTotal    -
+# <none>
 
 
 ##################################
index b03198627f42483f48aa0a12dc7e22cfba1c1b90..c71fc0d958216c7e079b45b71b47fe9aecee6825 100644 (file)
@@ -142,6 +142,12 @@ Python/pylifecycle.c       -       runtime_initialized     -
 Modules/syslogmodule.c -       S_ident_o       -
 Modules/syslogmodule.c -       S_log_open      -
 
+##-----------------------
+## kept for stable ABI compatibility
+
+# XXX should be per-interpreter, without impacting stable ABI extensions
+Objects/object.c       -       _Py_RefTotal    -
+
 ##-----------------------
 ## one-off temporary state