Fix 'undefined reference to GC_incremental' linker error in pthread_start
authorIvan Maidanski <ivmai@mail.ru>
Wed, 15 Aug 2018 06:29:23 +0000 (09:29 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 15 Aug 2018 06:29:23 +0000 (09:29 +0300)
(fix of commit 73d30d2)

GC_incremental is declared as static in case of NO_DEBUGGING.

* pthread_start.c [GC_PTHREADS && !GC_WIN32_THREADS]
(GC_inner_start_routine): Call GC_end_stubborn_change instead of
GC_dirty; add comment.

pthread_start.c

index f83dc43..d99026b 100644 (file)
@@ -59,7 +59,7 @@ GC_INNER_PTHRSTART void * GC_CALLBACK GC_inner_start_routine(
     GC_log_printf("Finishing thread %p\n", (void *)pthread_self());
 # endif
   me -> status = result;
-  GC_dirty(me);
+  GC_end_stubborn_change(me); /* cannot use GC_dirty */
 # ifndef NACL
     pthread_cleanup_pop(1);
     /* Cleanup acquires lock, ensuring that we can't exit while         */