This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/19048] Avoid corruption of free_list


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]