[pypy-svn] r68270 - pypy/branch/gc-compress/pypy/rpython/memory

arigo at codespeak.net arigo at codespeak.net
Fri Oct 9 12:38:31 CEST 2009


Author: arigo
Date: Fri Oct  9 12:38:31 2009
New Revision: 68270

Modified:
   pypy/branch/gc-compress/pypy/rpython/memory/gcwrapper.py
Log:
Fix for test_gc.


Modified: pypy/branch/gc-compress/pypy/rpython/memory/gcwrapper.py
==============================================================================
--- pypy/branch/gc-compress/pypy/rpython/memory/gcwrapper.py	(original)
+++ pypy/branch/gc-compress/pypy/rpython/memory/gcwrapper.py	Fri Oct  9 12:38:31 2009
@@ -18,7 +18,8 @@
         self.gc.setup()
 
     def prepare_graphs(self, flowgraphs):
-        layoutbuilder = DirectRunLayoutBuilder(self.llinterp)
+        layoutbuilder = DirectRunLayoutBuilder(self.gc.__class__,
+                                               self.llinterp)
         self.get_type_id = layoutbuilder.get_type_id
         layoutbuilder.initialize_gc_query_function(self.gc)
 
@@ -159,9 +160,9 @@
 
 class DirectRunLayoutBuilder(gctypelayout.TypeLayoutBuilder):
 
-    def __init__(self, llinterp):
+    def __init__(self, GCClass, llinterp):
         self.llinterp = llinterp
-        super(DirectRunLayoutBuilder, self).__init__()
+        super(DirectRunLayoutBuilder, self).__init__(GCClass)
 
     def make_finalizer_funcptr_for_type(self, TYPE):
         from pypy.rpython.memory.gctransform.support import get_rtti, \



More information about the Pypy-commit mailing list