Date: Thu, 10 Feb 2005 22:36:05 +0000 (UTC) From: Bosko Milekic <bmilekic@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm memguard.c Message-ID: <200502102236.j1AMa5bv023882@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bmilekic 2005-02-10 22:36:05 UTC
FreeBSD src repository
Modified files:
sys/vm memguard.c
Log:
Implement support for buffers larger than PAGE_SIZE in MemGuard. Adds
a little bit of complexity but performance requirements lacking (this is
a debugging allocator after all), it's really not too bad (still
only 317 lines).
Also add an additional check to help catch really weird 3-threads-involved
races: make memguard_free() write to the first page handed back, always,
before it does anything else.
Note that there is still a problem in VM+PMAP (specifically with
vm_map_protect) w.r.t. MemGuard uses it, but this will be fixed shortly
and this change stands on its own.
Revision Changes Path
1.3 +129 -32 src/sys/vm/memguard.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502102236.j1AMa5bv023882>
