mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2000-07-18 Kaz Kylheku <kaz@ashi.footprints.net> * spinlock.c (__pthread_alt_lock, __pthread_alt_timedlock): Fixed bug whereby thr field of waitnode structure would not be correctly set unless a null self pointer is passed to the functions. Eliminated redundant calls to thread_self().
This commit is contained in:
@ -30,8 +30,7 @@ extern struct link_map *_dl_profile_map;
|
||||
void
|
||||
_dl_mcount_wrapper (void *selfpc)
|
||||
{
|
||||
_dl_mcount ((ElfW(Addr)) __builtin_return_address (0),
|
||||
(ElfW(Addr)) selfpc);
|
||||
_dl_mcount ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc);
|
||||
}
|
||||
|
||||
|
||||
@ -39,6 +38,5 @@ void
|
||||
_dl_mcount_wrapper_check (void *selfpc)
|
||||
{
|
||||
if (_dl_profile_map != NULL)
|
||||
_dl_mcount ((ElfW(Addr)) __builtin_return_address (0),
|
||||
(ElfW(Addr)) selfpc);
|
||||
_dl_mcount ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user