summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-22 23:06:56 (GMT)
committerGitHub <noreply@github.com>2022-01-22 23:06:56 (GMT)
commit12f4ac3bc848244242d6b8a7ee158b985fd64744 (patch)
tree97646cd4908ef2ac6fd9f3b51d06a180603d3118 /Include
parent1ded8ed8e817b8f9dae1a0ef92d97983afbc844e (diff)
downloadcpython-12f4ac3bc848244242d6b8a7ee158b985fd64744.zip
cpython-12f4ac3bc848244242d6b8a7ee158b985fd64744.tar.gz
cpython-12f4ac3bc848244242d6b8a7ee158b985fd64744.tar.bz2
bpo-46417: Clear symtable identifiers at exit (GH-30809)
Add _PySymtable_Fini() function, called by finalize_interp_clear(). Update test_cmd_line.test_showrefcount() to tolerate negative reference count.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_symtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_symtable.h b/Include/internal/pycore_symtable.h
index 28935f4..4ecfab5 100644
--- a/Include/internal/pycore_symtable.h
+++ b/Include/internal/pycore_symtable.h
@@ -128,6 +128,8 @@ extern struct symtable* _Py_SymtableStringObjectFlags(
int start,
PyCompilerFlags *flags);
+extern void _PySymtable_Fini(void);
+
#ifdef __cplusplus
}
#endif