[pypy-svn] r54588 - in pypy/branch/gc-tweak/pypy/rpython/memory: . gc

arigo at codespeak.net arigo at codespeak.net
Fri May 9 13:42:35 CEST 2008


Author: arigo
Date: Fri May  9 13:42:33 2008
New Revision: 54588

Modified:
   pypy/branch/gc-tweak/pypy/rpython/memory/gc/generation.py
   pypy/branch/gc-tweak/pypy/rpython/memory/support.py
Log:
Translation fixes.  All id tests seem to pass.


Modified: pypy/branch/gc-tweak/pypy/rpython/memory/gc/generation.py
==============================================================================
--- pypy/branch/gc-tweak/pypy/rpython/memory/gc/generation.py	(original)
+++ pypy/branch/gc-tweak/pypy/rpython/memory/gc/generation.py	Fri May  9 13:42:33 2008
@@ -62,7 +62,6 @@
         # it lists exactly the old and static objects whose
         # GCFLAG_NO_YOUNG_PTRS bit is not set.
         self.young_objects_with_weakrefs = self.AddressStack()
-        self.young_objects_with_id = self.AddressDict()
         self.reset_nursery()
 
         # compute the constant lower bounds for the attributes
@@ -76,6 +75,7 @@
 
     def setup(self):
         self.last_generation_root_objects = self.AddressStack()
+        self.young_objects_with_id = self.AddressDict()
         SemiSpaceGC.setup(self)
         self.set_nursery_size(self.initial_nursery_size)
         # the GC is fully setup now.  The rest can make use of it.

Modified: pypy/branch/gc-tweak/pypy/rpython/memory/support.py
==============================================================================
--- pypy/branch/gc-tweak/pypy/rpython/memory/support.py	(original)
+++ pypy/branch/gc-tweak/pypy/rpython/memory/support.py	Fri May  9 13:42:33 2008
@@ -226,6 +226,7 @@
         self.data = {}
 
     def _key(self, addr):
+        "NOT_RPYTHON: prebuilt AddressDicts are not supported"
         return addr._fixup().ptr._obj
 
     def _wrapkey(self, obj):



More information about the Pypy-commit mailing list