This is to check that sem_post() is not called twice for a thread
(to stop) in GC_suspend_handler.
* pthread_stop_world.c [!NACL && GC_ASSERTIONS && !GC_OPENBSD_UTHREADS]
(GC_start_world): Add assertion that GC_suspend_ack_sem has zero value.
}
}
# endif
+# if defined(GC_ASSERTIONS) && !defined(GC_OPENBSD_UTHREADS)
+ {
+ int ack_count;
+ sem_getvalue(&GC_suspend_ack_sem, &ack_count);
+ GC_ASSERT(0 == ack_count);
+ }
+# endif
# ifdef DEBUG_THREADS
GC_log_printf("World started\n");
# endif