[pypy-commit] pypy incremental-gc: Increment nobjects here, replacing the value "1" with another

arigo noreply at buildbot.pypy.org
Tue Oct 8 15:33:45 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: incremental-gc
Changeset: r67205:7f52351a3a0a
Date: 2013-10-08 15:33 +0200
http://bitbucket.org/pypy/pypy/changeset/7f52351a3a0a/

Log:	Increment nobjects here, replacing the value "1" with another value
	that is as arbitrary but probably a bit better

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
@@ -1861,7 +1861,8 @@
             # Walk all rawmalloced objects and free the ones that don't
             # have the GCFLAG_VISITED flag.
             # XXX heuristic here to decide nobjects.
-            if self.free_unvisited_rawmalloc_objects_step(1):
+            nobjects = self.nursery_size // self.ac.page_size  # XXX
+            if self.free_unvisited_rawmalloc_objects_step(nobjects):
                 #malloc objects freed
                 self.gc_state = STATE_SWEEPING_ARENA
 


More information about the pypy-commit mailing list