[pypy-svn] r47454 - in pypy/dist/pypy/rpython/memory: . gctransform

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Oct 14 22:54:50 CEST 2007


Author: cfbolz
Date: Sun Oct 14 22:54:49 2007
New Revision: 47454

Modified:
   pypy/dist/pypy/rpython/memory/gctransform/framework.py
   pypy/dist/pypy/rpython/memory/gctypelayout.py
Log:
fix old typo: finalyzer -> finalizer


Modified: pypy/dist/pypy/rpython/memory/gctransform/framework.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctransform/framework.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctransform/framework.py	Sun Oct 14 22:54:49 2007
@@ -52,7 +52,7 @@
             OFFSETS_TO_GC_PTR = lltype.Array(lltype.Signed)
             TYPE_INFO = lltype.Struct("type_info",
                 ("isvarsize",   lltype.Bool),
-                ("finalyzer",   self.FINALIZERTYPE),
+                ("finalizer",   self.FINALIZERTYPE),
                 ("fixedsize",   lltype.Signed),
                 ("ofstoptrs",   lltype.Ptr(OFFSETS_TO_GC_PTR)),
                 ("varitemsize", lltype.Signed),
@@ -67,9 +67,9 @@
             debug_assert(typeid > 0, "invalid type_id")
             return gcdata.type_info_table[typeid].isvarsize
 
-        def q_finalyzer(typeid):
+        def q_finalizer(typeid):
             debug_assert(typeid > 0, "invalid type_id")
-            return gcdata.type_info_table[typeid].finalyzer
+            return gcdata.type_info_table[typeid].finalizer
 
         def q_offsets_to_gc_pointers(typeid):
             debug_assert(typeid > 0, "invalid type_id")
@@ -126,7 +126,7 @@
             gcdata.gc.setup()
             gcdata.gc.set_query_functions(
                 q_is_varsize,
-                q_finalyzer,
+                q_finalizer,
                 q_offsets_to_gc_pointers,
                 q_fixed_size,
                 q_varsize_item_sizes,
@@ -396,6 +396,7 @@
         newgcdependencies.append(ll_static_roots_inside)
         return newgcdependencies
 
+
     def gct_direct_call(self, hop):
         if self.collect_analyzer.analyze(hop.spaceop):
             self.push_roots(hop)

Modified: pypy/dist/pypy/rpython/memory/gctypelayout.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctypelayout.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctypelayout.py	Sun Oct 14 22:54:49 2007
@@ -32,7 +32,7 @@
             self.id_of_type[TYPE] = type_id
             offsets = offsets_to_gc_pointers(TYPE)
             info["ofstoptrs"] = self.offsets2table(offsets, TYPE)
-            info["finalyzer"] = self.make_finalizer_funcptr_for_type(TYPE)
+            info["finalizer"] = self.make_finalizer_funcptr_for_type(TYPE)
             info["weakptrofs"] = weakpointer_offset(TYPE)
             if not TYPE._is_varsize():
                 info["isvarsize"] = False
@@ -90,9 +90,9 @@
         assert typeid > 0
         return self.type_info_list[typeid]["isvarsize"]
 
-    def q_finalyzer(self, typeid):
+    def q_finalizer(self, typeid):
         assert typeid > 0
-        return self.type_info_list[typeid]["finalyzer"]
+        return self.type_info_list[typeid]["finalizer"]
 
     def q_offsets_to_gc_pointers(self, typeid):
         assert typeid > 0
@@ -124,7 +124,7 @@
 
     def get_query_functions(self):
         return (self.q_is_varsize,
-                self.q_finalyzer,
+                self.q_finalizer,
                 self.q_offsets_to_gc_pointers,
                 self.q_fixed_size,
                 self.q_varsize_item_sizes,



More information about the Pypy-commit mailing list