[pypy-svn] r71471 - pypy/branch/gc-better-hash/pypy/rpython/memory/gc

arigo at codespeak.net arigo at codespeak.net
Wed Feb 24 19:42:36 CET 2010


Author: arigo
Date: Wed Feb 24 19:42:35 2010
New Revision: 71471

Modified:
   pypy/branch/gc-better-hash/pypy/rpython/memory/gc/generation.py
Log:
Add an intmask() here.


Modified: pypy/branch/gc-better-hash/pypy/rpython/memory/gc/generation.py
==============================================================================
--- pypy/branch/gc-better-hash/pypy/rpython/memory/gc/generation.py	(original)
+++ pypy/branch/gc-better-hash/pypy/rpython/memory/gc/generation.py	Wed Feb 24 19:42:35 2010
@@ -551,7 +551,7 @@
         self.objects_with_id.setitem(obj, id)
 
     def _compute_current_nursery_hash(self, obj):
-        return llmemory.cast_adr_to_int(obj) + self.nursery_hash_base
+        return intmask(llmemory.cast_adr_to_int(obj) + self.nursery_hash_base)
 
     def heap_stats_walk_roots(self):
         self.last_generation_root_objects.foreach(



More information about the Pypy-commit mailing list