[pypy-svn] r53628 - in pypy/branch/io-improvements/pypy/rlib: . test

fijal at codespeak.net fijal at codespeak.net
Wed Apr 9 20:59:24 CEST 2008


Author: fijal
Date: Wed Apr  9 20:59:23 2008
New Revision: 53628

Modified:
   pypy/branch/io-improvements/pypy/rlib/rgc.py
   pypy/branch/io-improvements/pypy/rlib/test/test_rgc.py
Log:
this is really about pointers, not types


Modified: pypy/branch/io-improvements/pypy/rlib/rgc.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rlib/rgc.py	(original)
+++ pypy/branch/io-improvements/pypy/rlib/rgc.py	Wed Apr  9 20:59:23 2008
@@ -173,14 +173,14 @@
         hop.exception_cannot_occur()
         return hop.genop('gc_set_max_heap_size', [v_nbytes],
                          resulttype=lltype.Void)
-def can_move(P):
+def can_move(p):
     return True
-can_move._annspecialcase_ = 'specialize:arg(0)'
+can_move._annspecialcase_ = 'specialize:argtype(0)'
 
 class CanMoveEntry(ExtRegistryEntry):
     _about_ = can_move
 
-    def compute_result_annotation(self, s_TP):
+    def compute_result_annotation(self, s_p):
         from pypy.annotation import model as annmodel
         return annmodel.SomeBool()
 

Modified: pypy/branch/io-improvements/pypy/rlib/test/test_rgc.py
==============================================================================
--- pypy/branch/io-improvements/pypy/rlib/test/test_rgc.py	(original)
+++ pypy/branch/io-improvements/pypy/rlib/test/test_rgc.py	Wed Apr  9 20:59:23 2008
@@ -23,9 +23,9 @@
     T1 = lltype.GcArray(lltype.Float)
     def f(i):
         if i:
-            return rgc.can_move(T0)
+            return rgc.can_move(lltype.malloc(T0))
         else:
-            return rgc.can_move(T1)
+            return rgc.can_move(lltype.malloc(T1, 1))
 
     t, typer, graph = gengraph(f, [int])
     ops = list(graph.iterblockops())



More information about the Pypy-commit mailing list