diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-09 12:23:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 12:23:47 (GMT) |
commit | 5aaac94eeb44697e92b0951385cd557bc27e0f6a (patch) | |
tree | a81afcfbe2dd41aecee662ede2ec2b7f7542b5c1 /Misc | |
parent | e16467af0bfcc9f399df251495ff2d2ad20a1669 (diff) | |
download | cpython-5aaac94eeb44697e92b0951385cd557bc27e0f6a.zip cpython-5aaac94eeb44697e92b0951385cd557bc27e0f6a.tar.gz cpython-5aaac94eeb44697e92b0951385cd557bc27e0f6a.tar.bz2 |
bpo-36560: Fix reference leak hunting in regrtest (GH-12744)
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()
* Move calls to read memory statistics from dash_R_cleanup() to
dash_R()
* Pass regrtest 'ns' to dash_R()
* 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().
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2019-04-09-14-08-02.bpo-36560._ejeOr.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-04-09-14-08-02.bpo-36560._ejeOr.rst b/Misc/NEWS.d/next/Tests/2019-04-09-14-08-02.bpo-36560._ejeOr.rst new file mode 100644 index 0000000..ad0f681 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-04-09-14-08-02.bpo-36560._ejeOr.rst @@ -0,0 +1,4 @@ +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. |