[pypy-commit] pypy improve-vmprof-testing: make sure we call llfn() only when in the inside code

fijal pypy.commits at gmail.com
Fri Aug 5 13:11:37 EDT 2016


Author: fijal
Branch: improve-vmprof-testing
Changeset: r86038:f89c232d0bfe
Date: 2016-08-05 19:10 +0200
http://bitbucket.org/pypy/pypy/changeset/f89c232d0bfe/

Log:	make sure we call llfn() only when in the inside code

diff --git a/rpython/jit/backend/test/test_rvmprof.py b/rpython/jit/backend/test/test_rvmprof.py
--- a/rpython/jit/backend/test/test_rvmprof.py
+++ b/rpython/jit/backend/test/test_rvmprof.py
@@ -46,8 +46,9 @@
                 driver.jit_merge_point(code=code)
                 if code.name == "main":
                     f(codes, codes[1], 5)
+                else:
+                    llfn()
                 i += 1
-                llfn()
 
         def main(n):
             codes = [CodeObj("main"), CodeObj("not main")]


More information about the pypy-commit mailing list