about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-10-28 19:32:46 +0100
committerFlorian Weimer <fweimer@redhat.com>2015-10-28 21:29:23 +0100
commita62719ba90e2fa1728890ae7dc8df9e32a622e7b (patch)
tree27408968ee32da2b27effd96bce95fd93c399208 /ChangeLog
parent0b9af583a5c2d68085e88cece13952bf05dc4882 (diff)
downloadglibc-a62719ba90e2fa1728890ae7dc8df9e32a622e7b.tar.gz
glibc-a62719ba90e2fa1728890ae7dc8df9e32a622e7b.tar.xz
glibc-a62719ba90e2fa1728890ae7dc8df9e32a622e7b.zip
malloc: Prevent arena free_list from turning cyclic [BZ #19048]
	[BZ# 19048]
	* malloc/malloc.c (struct malloc_state): Update comment.  Add
	attached_threads member.
	(main_arena): Initialize attached_threads.
	* malloc/arena.c (list_lock): Update comment.
	(ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
	(ptmalloc_unlock_all2): Reinitialize arena reference counts.
	(deattach_arena): New function.
	(_int_new_arena): Initialize arena reference count and deattach
	replaced arena.
	(get_free_list, reused_arena): Update reference count and deattach
	replaced arena.
	(arena_thread_freeres): Update arena reference count and only put
	unreferenced arenas on the free list.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2eca099f81..9e0639bdbf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2015-10-28  Florian Weimer  <fweimer@redhat.com>
+
+	[BZ# 19048]
+	* malloc/malloc.c (struct malloc_state): Update comment.  Add
+	attached_threads member.
+	(main_arena): Initialize attached_threads.
+	* malloc/arena.c (list_lock): Update comment.
+	(ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
+	(ptmalloc_unlock_all2): Reinitialize arena reference counts.
+	(deattach_arena): New function.
+	(_int_new_arena): Initialize arena reference count and deattach
+	replaced arena.
+	(get_free_list, reused_arena): Update reference count and deattach
+	replaced arena.
+	(arena_thread_freeres): Update arena reference count and only put
+	unreferenced arenas on the free list.
+
 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #19181]