[issue38962] Reference leaks in subinterpreters

Pablo Galindo Salgado report at bugs.python.org
Tue Dec 3 16:32:23 EST 2019


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

For the subinterpreter other leaks it seems that the commit that introduced the leak is:

7247407c35330f3f6292f1d40606b7ba6afd5700 is the first bad commit
commit 7247407c35330f3f6292f1d40606b7ba6afd5700
Author: Victor Stinner <vstinner at python.org>
Date:   Wed Nov 20 12:25:50 2019 +0100

    bpo-36854: Move _PyRuntimeState.gc to PyInterpreterState (GH-17287)
    
    * Rename _PyGC_InitializeRuntime() to _PyGC_InitState()
    * finalize_interp_clear() now also calls _PyGC_Fini() in
      subinterpreters (clear the GC state).

 Include/internal/pycore_object.h                   |  2 +-
 Include/internal/pycore_pymem.h                    |  2 +-
 Include/internal/pycore_pystate.h                  |  7 +--
 .../2019-11-20-12-01-37.bpo-36854.Zga_md.rst       |  3 +
 Modules/gcmodule.c                                 | 72 ++++++++++++----------
 Objects/object.c                                   | 20 +++---
 Python/pylifecycle.c                               |  3 +-
 Python/pystate.c                                   |  2 +-
 8 files changed, 62 insertions(+), 49 deletions(-)
 create mode 100644 Misc/NEWS.d/next/Core and Builtins/2019-11-20-12-01-37.bpo-36854.Zga_md.rst
bisect run success

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38962>
_______________________________________


More information about the Python-bugs-list mailing list