[Bug malloc/19048] Avoid corruption of free_list
paulo.cesar.pereira.de.andrade at gmail dot com
sourceware-bugzilla@sourceware.org
Thu Oct 1 21:24:00 GMT 2015
https://sourceware.org/bugzilla/show_bug.cgi?id=19048
--- Comment #3 from Paulo Andrade <paulo.cesar.pereira.de.andrade at gmail dot com> ---
Created attachment 8669
--> https://sourceware.org/bugzilla/attachment.cgi?id=8669&action=edit
test.c
This is an alternate test case (older, from before detecting
the actual problem), that also shows how the patch makes a
significant difference.
Sample usage of this alternate test case:
$ gcc -pthread test.c -o test
$ ./test 1000 10000 1000 10
will cause all passes to run very slowly, while:
$ MALLOC_ARENA_MAX=1000 ./test 1000 10000 1000 10
allocating one arena per thread, will only be slow
in the first pass, but, with the proposed patch, it
is "fast" in all passes.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list