This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/19048] Avoid corruption of free_list
- From: "paulo.cesar.pereira.de.andrade at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 02 Oct 2015 14:33:46 +0000
- Subject: [Bug malloc/19048] Avoid corruption of free_list
- Auto-submitted: auto-generated
- References: <bug-19048-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19048
Paulo Andrade <paulo.cesar.pereira.de.andrade at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8672|0 |1
is obsolete| |
--- Comment #6 from Paulo Andrade <paulo.cesar.pereira.de.andrade at gmail dot com> ---
Created attachment 8674
--> https://sourceware.org/bugzilla/attachment.cgi?id=8674&action=edit
0001-Avoid-corruption-of-free_list.patch
Also properly handle the case of the arena associated
with the exiting thread already being the head of free_list.
The idea is to put the arena as last to be reused, in
a round robin manner. Other more complex "scheduling"
could be implemented, but could require maintaining a
reference counter of arenas, increased when set as
thread arena, reset when unset as thread arena, or
thread exits.
--
You are receiving this mail because:
You are on the CC list for the bug.