mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb, and __deallocate_stack with internal_function. * pthread_create.c: Adjust definitions appropriately. * allocatestack.c: Likewise. * pthread_join.c: Add one more __builtin_expect. * pthread_timedjoin.c: Likewise. * pthread_getspecific.c (__pthread_getspecific): Clear data->data not data of sequence number does not match. Add one __builtin_expect.
This commit is contained in:
@@ -59,8 +59,8 @@ __pthread_getspecific (key)
|
||||
{
|
||||
uintptr_t seq = data->seq;
|
||||
|
||||
if (seq != __pthread_keys[key].seq)
|
||||
result = data = NULL;
|
||||
if (__builtin_expect (seq != __pthread_keys[key].seq, 0))
|
||||
result = data->data = NULL;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user