Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
The commandgc.set_debug(gc.DEBUG_STATS) no longer prints out any statistics, even thoughgc.set_debug(gc.DEBUG_COLLECTABLE) shows that thegc is still being run.
(Probably caused by the incremental GC implementation,#116206 .)
For testing you can use the following code --- in previous Python versions thecollecting generation 0 text is printed, now it's not
importgcimportsysfromtimeimportsleepgc.set_debug(gc.DEBUG_STATS|gc.DEBUG_COLLECTABLE)for__inrange(3000):a=[1]a[0]=adelaprint(__)sleep(0.001)sys.exit()
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux