File Consolidate-arena_lookup-and-arena_lock-into-a-singl.patch of Package glibc.4899

2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>

	* malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
	arena_lock into a single arena_get.

Index: glibc-2.19/malloc/malloc.c
===================================================================
--- glibc-2.19.orig/malloc/malloc.c
+++ glibc-2.19/malloc/malloc.c
@@ -2881,9 +2881,8 @@ __libc_malloc (size_t bytes)
   if (__builtin_expect (hook != NULL, 0))
     return (*hook)(bytes, RETURN_ADDRESS (0));
 
-  arena_lookup (ar_ptr);
+  arena_get (ar_ptr, bytes);
 
-  arena_lock (ar_ptr, bytes);
   if (!ar_ptr)
     return 0;
 
openSUSE Build Service is sponsored by