[pypy-commit] pypy incremental-gc: fix

arigo noreply at buildbot.pypy.org
Fri Oct 11 19:21:59 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: incremental-gc
Changeset: r67326:1d3f04da10c9
Date: 2013-10-11 19:05 +0200
http://bitbucket.org/pypy/pypy/changeset/1d3f04da10c9/

Log:	fix

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
@@ -1785,7 +1785,7 @@
                                                  2 * limit + remaining)
             # XXX tweak the limits above
             #
-            if remaining == 0 and done:
+            if remaining > 0 and done:
                 self.num_major_collects += 1
                 #
                 # We also need to reset the GCFLAG_VISITED on prebuilt GC objects.


More information about the pypy-commit mailing list