Armin Rigo  committed 21292ed

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

  • Participants
  • Parent commits 1e73332
  • Branches gc-minimark-largeobj

Comments (0)

Files changed (1)

File pypy/rpython/memory/

 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
 class BasicAddressDict(object):
     def __init__(self):
- = {}
+ = identity_dict()      # {_key(addr): value}
     def _key(self, addr):
         "NOT_RPYTHON: prebuilt AddressDicts are not supported"