Date: Tue, 27 Mar 2007 04:42:27 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 pmap.c Message-ID: <200703270442.l2R4gRAw015594@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alc 2007-03-27 04:42:27 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/i386/i386 pmap.c Log: MFC revision 1.547 Introduce pmap_try_insert_pv_entry(), a function that conditionally creates a pv entry if the number of entries is below the high water mark for pv entries. Use pmap_try_insert_pv_entry() in pmap_copy() instead of pmap_insert_entry(). This avoids possible recursion on a pmap lock in get_pv_entry(). Eliminate the explicit low-memory checks in pmap_copy(). The check that the number of pv entries was below the high water mark was largely ineffective because it was located in the outer loop rather than the inner loop where pv entries were allocated. Instead of checking, we attempt the allocation and handle the failure. Revision Changes Path 1.523.2.12 +28 -18 src/sys/i386/i386/pmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703270442.l2R4gRAw015594>