From 1f91ea2d029a3c9c87c5253077a5e9a34ea64b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sat, 16 Nov 2013 23:52:04 +0000 Subject: [PATCH] fix tracer --- C/tracer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C/tracer.c b/C/tracer.c index bb3d5ec01..62cc99aaf 100644 --- a/C/tracer.c +++ b/C/tracer.c @@ -144,6 +144,10 @@ low_level_trace(yap_low_level_port port, PredEntry *pred, CELL *args) LOCK(Yap_heap_regs->low_level_trace_lock); sc = Yap_heap_regs; vsc_count++; +#ifdef THREADS + LOCAL_ThreadHandle.thread_inst_count++; +#endif +#ifdef COMMENTED fprintf(stderr,"in %p\n"); CELL * gc_ENV = ENV; while (gc_ENV != NULL) { /* no more environments */ @@ -153,10 +157,6 @@ low_level_trace(yap_low_level_port port, PredEntry *pred, CELL *args) } UNLOCK(Yap_heap_regs->low_level_trace_lock); return; -#ifdef THREADS - LOCAL_ThreadHandle.thread_inst_count++; -#endif -#ifdef COMMENTED { choiceptr b_p = B; while (b_p) {