* src/threads/threads-common.c (threads_dump): Ignore NEW threads while dumping.
[cacao.git] / src / threads / threads-common.c
index 2e8ff22f795750551e4dc801f45abea3441b0177..034db137f6db746007dcff3fe56a228a8e372522 100644 (file)
@@ -843,6 +843,10 @@ void threads_dump(void)
        /* iterate over all started threads */
 
        for (t = threads_list_first(); t != NULL; t = threads_list_next(t)) {
+               /* ignore threads which are in state NEW */
+               if (t->state == THREAD_STATE_NEW)
+                       continue;
+
                /* print thread info */
 
                printf("\n");