[pypy-svn] r73721 - pypy/trunk/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Tue Apr 13 15:33:26 CEST 2010


Author: arigo
Date: Tue Apr 13 15:33:25 2010
New Revision: 73721

Modified:
   pypy/trunk/pypy/jit/metainterp/optimizeopt.py
Log:
In principle, this was fixed by r73720.


Modified: pypy/trunk/pypy/jit/metainterp/optimizeopt.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/optimizeopt.py	(original)
+++ pypy/trunk/pypy/jit/metainterp/optimizeopt.py	Tue Apr 13 15:33:25 2010
@@ -216,17 +216,8 @@
         self._fields[ofs] = fieldvalue
 
     def _really_force(self):
-        if self.source_op is None:
-            # this case should not occur; I only managed to get it once
-            # in pypy-c-jit and couldn't reproduce it.  The point is
-            # that it relies on optimizefindnode.py computing exactly
-            # the right level of specialization, and it seems that there
-            # is still a corner case where it gets too specialized for
-            # optimizeopt.py.  Let's not crash in release-built
-            # pypy-c-jit's.  XXX find out when
-            from pypy.rlib.debug import ll_assert
-            ll_assert(False, "_really_force: source_op is None")
-            raise InvalidLoop
+        assert self.source_op is not None
+        # ^^^ This case should not occur any more (see test_bug_3).
         #
         newoperations = self.optimizer.newoperations
         newoperations.append(self.source_op)



More information about the Pypy-commit mailing list