1. Michael Blume
  2. pypy


Armin Rigo  committed 5d55ced

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

  • Participants
  • Parent commits c121e29
  • Branches gc-minimark-largeobj

Comments (0)

Files changed (1)

File pypy/rpython/memory/support.py

View file
  • Ignore whitespace
 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):
-        self.data = {}
+        self.data = identity_dict()      # {_key(addr): value}
     def _key(self, addr):
         "NOT_RPYTHON: prebuilt AddressDicts are not supported"