[pypy-svn] r53623 - pypy/dist/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Wed Apr 9 20:12:55 CEST 2008


Author: arigo
Date: Wed Apr  9 20:12:55 2008
New Revision: 53623

Modified:
   pypy/dist/pypy/rlib/rgc.py
Log:
The usual forgotten hop.exception_cannot_occur().


Modified: pypy/dist/pypy/rlib/rgc.py
==============================================================================
--- pypy/dist/pypy/rlib/rgc.py	(original)
+++ pypy/dist/pypy/rlib/rgc.py	Wed Apr  9 20:12:55 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)
 
@@ -181,4 +183,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