diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-01-01 13:53:58 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-01-01 13:53:58 +0300 |
commit | 807c811b5bd6700dbfd42c65362d00de0d0879a1 (patch) | |
tree | 642d10ff3508cd95540ab8276d86df2b6d15de6e /pthread_support.c | |
parent | 6f07b96cf488db20a4de4f10cea0675743b2621c (diff) | |
download | bdwgc-807c811b5bd6700dbfd42c65362d00de0d0879a1.tar.gz |
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.
Diffstat (limited to 'pthread_support.c')
-rw-r--r-- | pthread_support.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pthread_support.c b/pthread_support.c index bcdd8217..27437bb0 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); } |