2003-02-18 Ulrich Drepper <drepper@redhat.com>
+ * pthread_create.c (deallocate_tsd): Mark as internal_function.
+ Add some more __builtin_expect.
+
* pthreadP.h: Define dummy versio of DEBUGGING_P.
2003-02-17 Ulrich Drepper <drepper@redhat.com>
/* Deallocate POSIX thread-local-storage. */
static void
+internal_function
deallocate_tsd (struct pthread *pd)
{
/* Maybe no data was ever allocated. This happens often so we have
__free_tcb (struct pthread *pd)
{
/* The thread is exiting now. */
- if (atomic_bit_test_set (&pd->cancelhandling, TERMINATED_BIT) == 0)
+ if (__builtin_expect (atomic_bit_test_set (&pd->cancelhandling,
+ TERMINATED_BIT) == 0, 1))
{
/* Remove the descriptor from the list. */
if (DEBUGGING_P && __find_in_stack_list (pd) == NULL)