[pypy-commit] extradoc extradoc: patch to log guard failures

bivab noreply at buildbot.pypy.org
Tue Aug 7 17:54:23 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: extradoc
Changeset: r4464:5cdbd70d2832
Date: 2012-08-07 17:54 +0200
http://bitbucket.org/pypy/extradoc/changeset/5cdbd70d2832/

Log:	patch to log guard failures

diff --git a/talk/vmil2012/tool/failure_count.patch b/talk/vmil2012/tool/failure_count.patch
new file mode 100644
--- /dev/null
+++ b/talk/vmil2012/tool/failure_count.patch
@@ -0,0 +1,15 @@
+diff -r eb1c7d3b91a5 pypy/jit/metainterp/compile.py
+--- a/pypy/jit/metainterp/compile.py	Tue Aug 07 09:15:31 2012 +0000
++++ b/pypy/jit/metainterp/compile.py	Tue Aug 07 16:01:15 2012 +0200
+@@ -519,6 +519,11 @@
+             self._counter = cnt | i
+ 
+     def handle_fail(self, metainterp_sd, jitdriver_sd):
++        descr_num = metainterp_sd.cpu.get_fail_descr_number(self)
++        debug_start("jit-guard-failure")
++        debug_print("Guard", descr_num)
++        debug_stop("jit-guard-failure")
++
+         if self.must_compile(metainterp_sd, jitdriver_sd):
+             self.start_compiling()
+             try:
diff --git a/talk/vmil2012/tool/run_benchmarks.sh b/talk/vmil2012/tool/run_benchmarks.sh
--- a/talk/vmil2012/tool/run_benchmarks.sh
+++ b/talk/vmil2012/tool/run_benchmarks.sh
@@ -23,6 +23,7 @@
 hg update "${PYPYREV}"
 echo "Patching pypy"
 patch -p1 -N < "$base/tool/ll_resume_data_count.patch"
+patch -p1 -N < "$base/tool/failure_count.patch"
 #
 echo "Checking for an existing pypy-c"
 if [ ! -x "${pypy-c}" ]


More information about the pypy-commit mailing list