Author: Maciej Fijalkowski <fij...@gmail.com> Branch: gc-counters Changeset: r75080:cf2ed69b520d Date: 2014-12-23 15:58 +0200 http://bitbucket.org/pypy/pypy/changeset/cf2ed69b520d/
Log: we don't quite care about the performance here on this branch so just call get_member_index and get rid of a problem of size and fetching type ids from somewhere else 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 @@ -1862,7 +1862,7 @@ typeid = self.get_type_id(obj) # XXX - self.tid_counters[typeid] += totalsize + self.tid_counters[self.get_member_index(typeid)] += totalsize obj = llarena.getfakearenaaddress(obj) llarena.arena_reset(obj - size_gc_header, totalsize, 0) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit