From 807c811b5bd6700dbfd42c65362d00de0d0879a1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 1 Jan 2023 13:53:58 +0300 Subject: [PATCH] Fix 'status not a member of GC_Thread_Rep' error in push_thread_structures (fix of commit efc2732cd) * pthread_support.c (GC_push_thread_structures): Do not check first_thread.status in assertion unless GC_PTHREADS. --- pthread_support.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pthread_support.c b/pthread_support.c index bcdd82175..27437bb08 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -634,7 +634,10 @@ void GC_push_thread_structures(void) # ifdef E2K GC_PUSH_ALL_SYM(first_crtn.backing_store_end); # endif - GC_ASSERT(NULL == first_thread.tm.next && NULL == first_thread.status); + GC_ASSERT(NULL == first_thread.tm.next); +# ifdef GC_PTHREADS + GC_ASSERT(NULL == first_thread.status); +# endif GC_PUSH_ALL_SYM(first_thread.crtn); GC_PUSH_ALL_SYM(saved_crtn); }