mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-16 07:21:57 +03:00
Use C11 atomics instead atomic_add(_zero)
Replace atomic_add and atomic_add_zero with atomic_fetch_add_relaxed. Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
@ -3034,7 +3034,7 @@ munmap_chunk (mchunkptr p)
|
||||
malloc_printerr ("munmap_chunk(): invalid pointer");
|
||||
|
||||
atomic_decrement (&mp_.n_mmaps);
|
||||
atomic_add (&mp_.mmapped_mem, -total_size);
|
||||
atomic_fetch_add_relaxed (&mp_.mmapped_mem, -total_size);
|
||||
|
||||
/* If munmap failed the process virtual memory address space is in a
|
||||
bad shape. Just leave the block hanging around, the process will
|
||||
|
Reference in New Issue
Block a user