Florian Weimer
a62719ba90
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.
2015-10-28 21:29:23 +01:00
..
2015-10-28 21:29:23 +01:00
1999-10-04 22:59:43 +00:00
2015-05-19 12:10:26 -07:00
2015-05-19 06:40:38 +05:30
2015-10-28 21:29:23 +01:00
2015-01-02 16:29:47 +00:00
2014-01-02 09:40:10 +01:00
2015-01-02 16:29:47 +00:00
2015-10-21 11:57:23 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:54:45 +00:00
2015-01-02 16:54:45 +00:00
2015-01-02 16:29:47 +00:00
2015-09-08 21:11:03 +00:00
2015-09-01 08:35:38 -07:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-04-07 17:46:58 +02:00
2015-04-07 11:03:43 +02:00
2015-04-07 11:03:43 +02:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-05 09:39:49 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2005-12-06 00:50:15 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2014-11-05 15:24:08 +05:30
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-04-09 17:12:42 +02:00
2007-12-16 22:57:57 +00:00
2015-01-02 16:29:47 +00:00
2015-04-07 11:03:43 +02:00