Date: Tue, 30 Sep 2003 18:21:37 -0700 (PDT) From: Andrew Gallatin <gallatin@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_map.c Message-ID: <200310010121.h911LbnC044557@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
gallatin 2003/09/30 18:21:37 PDT
FreeBSD src repository
Modified files: (Branch: RELENG_4)
sys/vm vm_map.c
Log:
Fix a bug which was introduced in version 1.187.2.16 of
sys/vm/vm_map.c and affects the unwiring memory:
The map entries are processed in a loop, checking to make sure the
entry is wired and asserting it has a wired count. However, another
loop was inserted more-or-less in the middle of the of the unwiring
path. This loop picks up the "entry" loop variable from the first loop
without first setting it to start_entry. Naturally, the second loop
is never entered and the pages backing the entries are never unwired.
This can lead to a leak of wired pages.
Reviewed by: alc
Approved by: re (murray)
Revision Changes Path
1.187.2.21 +1 -0 src/sys/vm/vm_map.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310010121.h911LbnC044557>
