Add an assert to ensure the wired count doesn't wrap.

This commit is contained in:
Michael Lotz 2011-11-13 21:19:59 +01:00
parent 3733c51d38
commit 2cdd33d4ff

View File

@ -365,6 +365,8 @@ vm_page::IncrementWiredCount()
inline void
vm_page::DecrementWiredCount()
{
ASSERT(fWiredCount > 0);
if (--fWiredCount == 0)
cache_ref->cache->DecrementWiredPagesCount();
}