* src/mm/cacao-gc/gc.c (gc_collect) [!NDEBUG]: Fixed compilation.
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 4 Feb 2008 16:37:35 +0000 (17:37 +0100)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Mon, 4 Feb 2008 16:37:35 +0000 (17:37 +0100)
src/mm/cacao-gc/gc.c

index 9c38507075ea1d851c60e9bab3ee148a2ad52bac..0c5a4c75425aa3fcd82e7cf5776548a49931cb5c 100644 (file)
@@ -234,8 +234,7 @@ void gc_collect(s4 level)
        rootset_t    *rs;
        int32_t       dumpmarker;
 #if !defined(NDEBUG)
        rootset_t    *rs;
        int32_t       dumpmarker;
 #if !defined(NDEBUG)
-       stackframeinfo_t *sfi;
-       stacktracebuffer *stb;
+       stacktrace_t *st;
 #endif
 #if defined(ENABLE_RT_TIMING)
        struct timespec time_start, time_suspend, time_rootset, time_mark, time_compact, time_end;
 #endif
 #if defined(ENABLE_RT_TIMING)
        struct timespec time_start, time_suspend, time_rootset, time_mark, time_compact, time_end;
@@ -270,11 +269,10 @@ void gc_collect(s4 level)
 #if !defined(NDEBUG)
        /* get the stacktrace of the current thread and make sure it is non-empty */
        GC_LOG( printf("Stacktrace of current thread:\n"); );
 #if !defined(NDEBUG)
        /* get the stacktrace of the current thread and make sure it is non-empty */
        GC_LOG( printf("Stacktrace of current thread:\n"); );
-       sfi = STACKFRAMEINFO;
-       stb = stacktrace_create(sfi);
-       if (stb == NULL)
+       st = stacktrace_get();
+       if (st == NULL)
                vm_abort("gc_collect: no stacktrace available for current thread!");
                vm_abort("gc_collect: no stacktrace available for current thread!");
-       GC_LOG( stacktrace_print_trace_from_buffer(stb); );
+       GC_LOG( stacktrace_print(st); );
 #endif
 
        /* sourcestate of the current thread, assuming we are in the native world */
 #endif
 
        /* sourcestate of the current thread, assuming we are in the native world */