mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Use atomic_exchange_release/acquire
Rename atomic_exchange_rel/acq to use atomic_exchange_release/acquire since these map to the standard C11 atomic builtins. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -137,8 +137,8 @@ __libc_message (const char *fmt, ...)
|
||||
|
||||
/* We have to free the old buffer since the application might
|
||||
catch the SIGABRT signal. */
|
||||
struct abort_msg_s *old = atomic_exchange_acq (&__abort_msg,
|
||||
buf);
|
||||
struct abort_msg_s *old = atomic_exchange_acquire (&__abort_msg,
|
||||
buf);
|
||||
if (old != NULL)
|
||||
__munmap (old, old->size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user