Author: fijal
Branch: vmprof-newstack
Changeset: r81664:94707b484f65
Date: 2016-01-11 11:24 +0200
http://bitbucket.org/pypy/pypy/changeset/94707b484f65/

Log:    ups a better way

diff --git a/rpython/rlib/rvmprof/src/vmprof_main.h 
b/rpython/rlib/rvmprof/src/vmprof_main.h
--- a/rpython/rlib/rvmprof/src/vmprof_main.h
+++ b/rpython/rlib/rvmprof/src/vmprof_main.h
@@ -159,7 +159,7 @@
         }
 #ifdef PYPY_JIT_CODEMAP
         if (stack->kind == VMPROF_JITTED_TAG) {
-            pc = stack->value;
+            pc = (intptr_t*)(stack->value - sizeof(intptr_t))[0];
             n = vmprof_write_header_for_jit_addr(result, n, pc, max_depth);
             stack = stack->next;
         }
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to