Author: fijal
Branch: vmprof-newstack
Changeset: r81656:f9c88ae567fd
Date: 2016-01-10 22:24 +0200
http://bitbucket.org/pypy/pypy/changeset/f9c88ae567fd/

Log:    fix translation

diff --git a/rpython/rlib/rvmprof/src/vmprof_get_custom_offset.h 
b/rpython/rlib/rvmprof/src/vmprof_get_custom_offset.h
--- a/rpython/rlib/rvmprof/src/vmprof_get_custom_offset.h
+++ b/rpython/rlib/rvmprof/src/vmprof_get_custom_offset.h
@@ -8,6 +8,7 @@
 static long vmprof_write_header_for_jit_addr(intptr_t *result, long n,
                                              intptr_t ip, int max_depth)
 {
+#ifdef PYPY_JIT_CODEMAP
     void *codemap;
     long current_pos = 0;
     intptr_t id;
@@ -44,5 +45,6 @@
         result[n - k - 1] = tmp;
         k++;
     }
+#endif
     return n;
 }
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
@@ -142,12 +142,14 @@
     intptr_t addr = 0;
     int bottom_jitted = 0;
     // check if the pc is in JIT
+#ifdef PYPY_JIT_CODEMAP
     if (pypy_find_codemap_at_addr((intptr_t)pc, &addr)) {
         // the bottom part is jitted, means we can fill up the first part
         // from the JIT
         n = vmprof_write_header_for_jit_addr(result, n, pc, max_depth);
         stack = stack->next; // skip the first item as it contains garbage
     }
+#endif
     while (n < max_depth - 1 && stack) {
         result[n] = stack->kind;
         result[n + 1] = stack->value;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to