[pypy-commit] pypy rawrefcount-free-early: (antocuni, arigo, stephan around)

arigo pypy.commits at gmail.com
Fri Mar 23 06:13:00 EDT 2018


Author: Armin Rigo <arigo at tunes.org>
Branch: rawrefcount-free-early
Changeset: r94109:eba667b91fd0
Date: 2018-03-23 11:12 +0100
http://bitbucket.org/pypy/pypy/changeset/eba667b91fd0/

Log:	(antocuni, arigo, stephan around)

	Trying to call rrc_invoke_callback() after every minor collection.
	This should allow cpyext objects to be freed much earlier (and it
	was kind of the goal, and was a bug, anyway).

diff --git a/rpython/memory/gc/incminimark.py b/rpython/memory/gc/incminimark.py
--- a/rpython/memory/gc/incminimark.py
+++ b/rpython/memory/gc/incminimark.py
@@ -871,6 +871,8 @@
                 break
             #
         #
+        self.rrc_invoke_callback()      # XXX think more and write tests
+        #
         if self.debug_tiny_nursery >= 0:   # for debugging
             if self.nursery_top - self.nursery_free > self.debug_tiny_nursery:
                 self.nursery_free = self.nursery_top - self.debug_tiny_nursery


More information about the pypy-commit mailing list