summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_stop_world.c')
-rw-r--r--pthread_stop_world.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index d45b8a17..0c0c7b53 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -800,6 +800,7 @@ GC_INNER void GC_push_all_stacks(void)
# endif
GC_stack_context_t crtn = p -> crtn;
+ GC_ASSERT(THREAD_TABLE_INDEX(p -> id) == i);
if (KNOWN_FINISHED(p)) continue;
++nthreads;
traced_stack_sect = crtn -> traced_stack_sect;