This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Mark.Shannon, chris.jerdonek, corona10, gvanrossum, iritkatriel, lukasz.langa, miss-islington, pablogsal, vstinner
Date 2021-09-01.15:56:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630511782.27.0.363719914062.issue44895@roundup.psfhosted.org>
In-reply-to
Content
With your patch I don't see a leak for refleak.py, but I still see one for 

./python.exe -m test -R 3:3 test_exceptions -m test_no_hang_on_context_chain_cycle2 -m test_recursion_normalizing_infinite_exception -m test_recursion_in_except_handler -m test_recursion_normalizing_with_no_memory -F -j1

(once I remove the @skip on test_no_hang_on_context_chain_cycle2). 


However, if I make this change it looks better:


--- a/Lib/test/libregrtest/refleak.py
+++ b/Lib/test/libregrtest/refleak.py
@@ -90,8 +90,9 @@ def get_pooled_int(value):
     for i in rep_range:
         test_func()
 
-        dash_R_cleanup(fs, ps, pic, zdc, abcs)
-        support.gc_collect()
+        for i in range(3):
+            dash_R_cleanup(fs, ps, pic, zdc, abcs)
+            support.gc_collect()
History
Date User Action Args
2021-09-01 15:56:22iritkatrielsetrecipients: + iritkatriel, gvanrossum, vstinner, chris.jerdonek, lukasz.langa, Mark.Shannon, corona10, pablogsal, miss-islington
2021-09-01 15:56:22iritkatrielsetmessageid: <1630511782.27.0.363719914062.issue44895@roundup.psfhosted.org>
2021-09-01 15:56:22iritkatriellinkissue44895 messages
2021-09-01 15:56:22iritkatrielcreate