[pypy-svn] pypy default: Translation fix for test_zrpy_gc.

arigo commits-noreply at bitbucket.org
Mon Mar 14 22:44:01 CET 2011

Author: Armin Rigo <arigo at tunes.org>
Changeset: r42652:cefd7bb99a50
Date: 2011-03-14 17:43 -0400

Log:	Translation fix for test_zrpy_gc.

diff --git a/pypy/jit/metainterp/resume.py b/pypy/jit/metainterp/resume.py
--- a/pypy/jit/metainterp/resume.py
+++ b/pypy/jit/metainterp/resume.py
@@ -706,6 +706,7 @@
         # Note that this may be called recursively; that's why the
         # allocate() methods must fill in the cache as soon as they
         # have the object, before they fill its fields.
+        assert self.virtuals_cache is not None
         v = self.virtuals_cache[index]
         if not v:
             v = self.rd_virtuals[index].allocate(self, index)

More information about the Pypy-commit mailing list