Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r83838:d955f9d633d4 Date: 2016-04-24 10:55 +0200 http://bitbucket.org/pypy/pypy/changeset/d955f9d633d4/
Log: doc tweaks 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 @@ -746,13 +746,15 @@ if self.gc_state != STATE_SCANNING or self.threshold_reached(extrasize): self.major_collection_step(extrasize) - # See documentation in major_collection_step() + # See documentation in major_collection_step() for target invariants while self.gc_state != STATE_SCANNING: # target (A1) threshold = self.threshold_objects_made_old if threshold >= r_uint(extrasize): - threshold -= r_uint(extrasize) + threshold -= r_uint(extrasize) # (*) if self.size_objects_made_old <= threshold: # target (A2) break + # Note that target (A2) is tweaked by (*); see + # test_gc_set_max_heap_size in translator/c, test_newgc.py self._minor_collection() self.major_collection_step(extrasize) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit