Merge from subtype.
[cacao.git] / src / vm / jit / methodtree.c
index 430f109ab1f7851347956a87da9f2d8bd467afc5..0cb513794b8f5998e0979b414544f812b6356bea 100644 (file)
 
 #include "mm/memory.h"
 
-#include "threads/threads-common.h"
-
 #include "toolbox/avl.h"
 
 #include "vm/jit/asmpart.h"
 #include "vm/jit/methodtree.h"
+#include "vm/jit/stacktrace.hpp"
 
 
 /* methodtree_element *********************************************************/
@@ -199,10 +198,7 @@ void *methodtree_find(void *pc)
 
                log_println("Dumping the current stacktrace:");
 
-#if defined(ENABLE_THREADS)
-               /* XXX michi: This should be available even without threads! */
-               threads_print_stacktrace();
-#endif
+               stacktrace_print_current();
 
                vm_abort("Exiting...");
        }