Skip to content

Commit

Permalink
pythongh-81057: Move _Py_RefTotal to the "Ignored Globals" List (pyth…
Browse files Browse the repository at this point in the history
…ongh-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.

python#81057
  • Loading branch information
ericsnowcurrently authored Dec 12, 2022
1 parent 5eb28bc commit 0e081a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Tools/c-analyzer/cpython/globals-to-fix.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,7 @@ Objects/sliceobject.c - _Py_EllipsisObject -
##################################
## global non-objects to fix in core code

##-----------------------
## state

Objects/object.c - _Py_RefTotal -
# <none>


##################################
Expand Down
6 changes: 6 additions & 0 deletions Tools/c-analyzer/cpython/ignored.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e081a0

Please sign in to comment.