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.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index 77d1a194..3db01761 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -839,18 +839,10 @@ GC_INNER void GC_push_all_stacks(void)
traced_stack_sect = traced_stack_sect -> prev;
}
}
- if (EXPECT((p -> flags & MAIN_THREAD) == 0, TRUE)) {
- hi = crtn -> stack_end;
-# ifdef IA64
- bs_lo = crtn -> backing_store_end;
-# endif
- } else {
- /* The original stack. */
- hi = GC_stackbottom;
-# ifdef IA64
- bs_lo = BACKING_STORE_BASE;
-# endif
- }
+ hi = crtn -> stack_end;
+# ifdef IA64
+ bs_lo = crtn -> backing_store_end;
+# endif
# ifdef DEBUG_THREADS
GC_log_printf("Stack for thread %p is [%p,%p)\n",
(void *)p->id, (void *)lo, (void *)hi);