Author: Remi Meier <[email protected]>
Branch: stmgc-c8
Changeset: r82487:26b15c64b274
Date: 2016-02-24 19:08 +0100
http://bitbucket.org/pypy/pypy/changeset/26b15c64b274/

Log:    fix

diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -145,7 +145,7 @@
         return self._size_estimate >> NUM_DIGITS
 
     @jit.dont_look_inside
-    def _update_size_estimate(self, new_size_estimate):
+    def _update_size_estimate(self, obj):
         oldattr = self
         attr = obj._get_mapdict_map()
         size_est = (oldattr._size_estimate + attr.size_estimate()
@@ -183,7 +183,7 @@
     def add_attr(self, obj, name, index, w_value):
         self._reorder_and_add(obj, name, index, w_value)
         if not jit.we_are_jitted():
-            oldattr._update_size_estimate(attr.size_estimate())
+            self._update_size_estimate(obj)
 
     def _add_attr_without_reordering(self, obj, name, index, w_value):
         attr = self._get_new_attr(name, index)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to