aboutsummaryrefslogtreecommitdiff
path: root/stdlib/putenv.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-04-13 14:07:58 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-04-13 14:07:58 -0500
commitc252c193e2583e4506b141d052df29a0987ac290 (patch)
tree9b9d6a42bdec1e2822d627bc4d6c95b634fdbdba /stdlib/putenv.c
parentf664b663118642490b8776dcf4f30524a646dcbc (diff)
downloadglibc-c252c193e2583e4506b141d052df29a0987ac290.tar
glibc-c252c193e2583e4506b141d052df29a0987ac290.tar.gz
glibc-c252c193e2583e4506b141d052df29a0987ac290.tar.bz2
glibc-c252c193e2583e4506b141d052df29a0987ac290.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. (cherry picked from commit a62719ba90e2fa1728890ae7dc8df9e32a622e7b)
Diffstat (limited to 'stdlib/putenv.c')
0 files changed, 0 insertions, 0 deletions