Skip to content

Commit

Permalink
Fix 'status not a member of GC_Thread_Rep' error in push_thread_struc…
Browse files Browse the repository at this point in the history
…tures

(fix of commit efc2732)

* pthread_support.c (GC_push_thread_structures): Do not check
first_thread.status in assertion unless GC_PTHREADS.
  • Loading branch information
ivmai committed Jan 1, 2023
1 parent 6f07b96 commit 807c811
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pthread_support.c
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 807c811

Please sign in to comment.