summaryrefslogtreecommitdiff
path: root/pthread_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_support.c')
-rw-r--r--pthread_support.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pthread_support.c b/pthread_support.c
index d9f935f7..d0c9cb10 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -1617,6 +1617,7 @@ GC_API int GC_CALL GC_register_my_thread(const struct GC_stack_base *sb)
} else if ((me -> flags & FINISHED) != 0) {
/* This code is executed when a thread is registered from the */
/* client thread key destructor. */
+ GC_ASSERT((me -> flags & SUSPENDED_EXT) == 0);
GC_record_stack_base(me, sb);
me -> flags &= ~FINISHED; /* but not DETACHED */
# ifdef GC_EXPLICIT_SIGNALS_UNBLOCK