[pypy-svn] pypy jit-unroll-loops: Comment.

arigo commits-noreply at bitbucket.org
Mon Jan 3 18:36:49 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-unroll-loops
Changeset: r40344:ad8444eacf61
Date: 2011-01-03 18:36 +0100
http://bitbucket.org/pypy/pypy/changeset/ad8444eacf61/

Log:	Comment.

diff --git a/pypy/jit/metainterp/test/test_blackhole.py b/pypy/jit/metainterp/test/test_blackhole.py
--- a/pypy/jit/metainterp/test/test_blackhole.py
+++ b/pypy/jit/metainterp/test/test_blackhole.py
@@ -160,9 +160,9 @@
     def test_blackholeinterp_cache_normal(self):
         myjitdriver = JitDriver(greens = [], reds = ['x', 'y'])
         def choices(x):
-            if x == 0:
-                return 0
-            return 34871
+            if x == 0:       # <- this is the test that eventually succeeds,
+                return 0     #    requiring a blackhole interp in a call stack
+            return 34871     #    of two functions (hence num_interpreters==2)
         def f(x):
             y = 0
             cont = 1


More information about the Pypy-commit mailing list