Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 9, 2019

Fix reference leak hunting in regrtest: compute also deltas (of
reference count, allocated memory blocks, file descriptor count)
during warmup, to ensure that everything is initialized before
starting to hunt reference leaks.

Other changes:

  • Replace gc.collect() with support.gc_collect() in clear_caches()
  • dash_R() is now more quiet with --quiet option (don't display
    progress).
  • Precompute the full range for "for it in range(repcount):" to
    ensure that the iteration doesn't allocate anything new.
  • dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94)

https://bugs.python.org/issue36560

Fix reference leak hunting in regrtest: compute also deltas (of
reference count and file descriptor count) during warmup, to ensure
that everything is initialized before starting to hunt reference
leaks.

Other changes:

* Replace gc.collect() with support.gc_collect() in clear_caches()
* dash_R() is now more quiet with --quiet option (don't display
  progress).
* Precompute the full range for "for it in range(repcount):" to
  ensure that the iteration doesn't allocate anything new.
* dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants