Date: Sun, 17 Feb 2008 18:34:17 +0000 (UTC) From: Jason Evans <jasone@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib malloc.c Message-ID: <200802171834.m1HIYHkX067193@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@bredband.net>
Revision Changes Path
1.166 +41 -25 src/lib/libc/stdlib/malloc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802171834.m1HIYHkX067193>
