diff options
author | Victor Stinner <vstinner@python.org> | 2020-10-30 21:51:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 21:51:02 (GMT) |
commit | eba5bf2f5672bf4861c626937597b85ac0c242b9 (patch) | |
tree | 914219482fdbb19af1c54f1b6c9b81a67611c990 /Parser/pegen.c | |
parent | 4fe72090deb7fb7bc09bfa56c92f6b3b0967d395 (diff) | |
download | cpython-eba5bf2f5672bf4861c626937597b85ac0c242b9.zip cpython-eba5bf2f5672bf4861c626937597b85ac0c242b9.tar.gz cpython-eba5bf2f5672bf4861c626937597b85ac0c242b9.tar.bz2 |
bpo-42208: Call GC collect earlier in PyInterpreterState_Clear() (GH-23044)
The last GC collection is now done before clearing builtins and sys
dictionaries. Add also assertions to ensure that gc.collect() is no
longer called after _PyGC_Fini().
Pass also the tstate to PyInterpreterState_Clear() to pass the
correct tstate to _PyGC_CollectNoFail() and _PyGC_Fini().
Diffstat (limited to 'Parser/pegen.c')
0 files changed, 0 insertions, 0 deletions