#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 *********************************************************/
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...");
}