[Python-checkins] gh-81057: Move _Py_RefTotal to the "Ignored Globals" List (gh-100203)
ericsnowcurrently
webhook-mailer at python.org
Mon Dec 12 18:51:33 EST 2022
https://github.com/python/cpython/commit/0e081a089ec969c9a34f5ff25886205616ef4dd3
commit: 0e081a089ec969c9a34f5ff25886205616ef4dd3
branch: main
author: Eric Snow <ericsnowcurrently at gmail.com>
committer: ericsnowcurrently <ericsnowcurrently at gmail.com>
date: 2022-12-12T16:51:27-07:00
summary:
gh-81057: Move _Py_RefTotal to the "Ignored Globals" List (gh-100203)
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
files:
M Tools/c-analyzer/cpython/globals-to-fix.tsv
M Tools/c-analyzer/cpython/ignored.tsv
diff --git a/Tools/c-analyzer/cpython/globals-to-fix.tsv b/Tools/c-analyzer/cpython/globals-to-fix.tsv
index fcec95bbb2f7..479221cbd4b6 100644
--- a/Tools/c-analyzer/cpython/globals-to-fix.tsv
+++ b/Tools/c-analyzer/cpython/globals-to-fix.tsv
@@ -302,10 +302,7 @@ Objects/sliceobject.c - _Py_EllipsisObject -
##################################
## global non-objects to fix in core code
-##-----------------------
-## state
-
-Objects/object.c - _Py_RefTotal -
+# <none>
##################################
diff --git a/Tools/c-analyzer/cpython/ignored.tsv b/Tools/c-analyzer/cpython/ignored.tsv
index b03198627f42..c71fc0d95821 100644
--- a/Tools/c-analyzer/cpython/ignored.tsv
+++ b/Tools/c-analyzer/cpython/ignored.tsv
@@ -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
More information about the Python-checkins
mailing list