Commits

Armin Rigo committed 21292ed

Fixing the test requires using an identity_dict instead of
a real dict here, because the hash of _objs changes.

Comments (0)

Files changed (1)

pypy/rpython/memory/support.py

 from pypy.rlib.objectmodel import free_non_gc_object, we_are_translated
 from pypy.rlib.rarithmetic import r_uint, LONG_BIT
 from pypy.rlib.debug import ll_assert
+from pypy.tool.identity_dict import identity_dict
 
 DEFAULT_CHUNK_SIZE = 1019
 
 class BasicAddressDict(object):
 
     def __init__(self):
-        self.data = {}
+        self.data = identity_dict()      # {_key(addr): value}
 
     def _key(self, addr):
         "NOT_RPYTHON: prebuilt AddressDicts are not supported"