Blame SOURCES/glibc-rh1065574-5.patch

147e83
This is a partial recreation of this upstream commit, restricted to
147e83
the __malloc_info function:
147e83
147e83
commit 4bf5f2224baa1590f92f7a26930928fe9f7e4b57
147e83
Author: Florian Weimer <fweimer@redhat.com>
147e83
Date:   Tue Sep 6 12:49:54 2016 +0200
147e83
147e83
    malloc: Automated part of conversion to __libc_lock
147e83
147e83
diff --git a/malloc/malloc.c b/malloc/malloc.c
147e83
index 18e00315c6edba4d..d2a5e251da4f1191 100644
147e83
--- a/malloc/malloc.c
147e83
+++ b/malloc/malloc.c
147e83
@@ -5049,7 +5049,7 @@ __malloc_info (int options, FILE *fp)
147e83
       } sizes[NFASTBINS + NBINS - 1];
147e83
 #define nsizes (sizeof (sizes) / sizeof (sizes[0]))
147e83
 
147e83
-      mutex_lock (&ar_ptr->mutex);
147e83
+      __libc_lock_lock (ar_ptr->mutex);
147e83
 
147e83
       for (size_t i = 0; i < NFASTBINS; ++i)
147e83
 	{
147e83
@@ -5108,7 +5108,7 @@ __malloc_info (int options, FILE *fp)
147e83
 	  avail += sizes[NFASTBINS - 1 + i].total;
147e83
 	}
147e83
 
147e83
-      mutex_unlock (&ar_ptr->mutex);
147e83
+      __libc_lock_unlock (ar_ptr->mutex);
147e83
 
147e83
       total_nfastblocks += nfastblocks;
147e83
       total_fastavail += fastavail;