Author: Armin Rigo <ar...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit