cvs commit: src/lib/libc/stdlib malloc.c
Jason Evans
jasone at FreeBSD.org
Sun Feb 17 10:34:17 PST 2008
jasone 2008-02-17 18:34:17 UTC
FreeBSD src repository
Modified files:
lib/libc/stdlib malloc.c
Log:
Fix a race condition in arena_ralloc() for shrinking in-place large
reallocation, when junk filling is enabled. Junk filling must occur
prior to shrinking, since any deallocated trailing pages are immediately
available for use by other threads.
Reported by: Mats Palmgren <mats.palmgren at bredband.net>
Revision Changes Path
1.166 +41 -25 src/lib/libc/stdlib/malloc.c
More information about the cvs-src
mailing list