[pypy-commit] pypy gc-counters: we don't quite care about the performance here on this branch so just call
fijal
noreply at buildbot.pypy.org
Tue Dec 23 14:58:53 CET 2014
Author: Maciej Fijalkowski <fijall at 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)
More information about the pypy-commit
mailing list