mirror of
https://github.com/python/cpython.git
synced 2025-10-28 04:04:44 +00:00
[3.14] gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set (GH-136518) (#136522)
gh-136517: Print uncollectable objects if DEBUG_UNCOLLECTABLE mode was set (GH-136518)
(cherry picked from commit c560df9658)
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
This commit is contained in:
parent
5535482d2a
commit
e03db7317f
3 changed files with 8 additions and 1 deletions
|
|
@ -1763,7 +1763,7 @@ gc_collect_region(PyThreadState *tstate,
|
|||
Py_ssize_t n = 0;
|
||||
for (gc = GC_NEXT(&finalizers); gc != &finalizers; gc = GC_NEXT(gc)) {
|
||||
n++;
|
||||
if (gcstate->debug & _PyGC_DEBUG_COLLECTABLE)
|
||||
if (gcstate->debug & _PyGC_DEBUG_UNCOLLECTABLE)
|
||||
debug_cycle("uncollectable", FROM_GC(gc));
|
||||
}
|
||||
stats->uncollectable = n;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue