[pypy-svn] r53624 - pypy/branch/io-improvements/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Wed Apr 9 20:17:33 CEST 2008


Author: arigo
Date: Wed Apr  9 20:17:33 2008
New Revision: 53624

Modified:
   pypy/branch/io-improvements/pypy/rlib/rgc.py
Log:
Drop some hop.exception_cannot_occur() in the branch too.


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:17:33 2008
@@ -157,6 +157,7 @@
         return annmodel.s_None
 
     def specialize_call(self, hop):
+        hop.exception_cannot_occur()
         return hop.genop('gc__collect', [], resulttype=hop.r_result)
     
 class SetMaxHeapSizeEntry(ExtRegistryEntry):
@@ -169,6 +170,7 @@
     def specialize_call(self, hop):
         from pypy.rpython.lltypesystem import lltype
         [v_nbytes] = hop.inputargs(lltype.Signed)
+        hop.exception_cannot_occur()
         return hop.genop('gc_set_max_heap_size', [v_nbytes],
                          resulttype=lltype.Void)
 def can_move(P):
@@ -184,6 +186,7 @@
 
     def specialize_call(self, hop):
         from pypy.rpython.lltypesystem import lltype
+        hop.exception_cannot_occur()
         return hop.genop('gc_can_move', [], resulttype=lltype.Bool)
 
 class CollectEntry(ExtRegistryEntry):
@@ -195,5 +198,5 @@
 
     def specialize_call(self, hop):
         opname = 'gc__' + self.instance.__name__
+        hop.exception_cannot_occur()
         return hop.genop(opname, [], resulttype=hop.r_result)
-



More information about the Pypy-commit mailing list