Add an assert to ensure the wired count doesn't wrap.
This commit is contained in:
parent
3733c51d38
commit
2cdd33d4ff
@ -365,6 +365,8 @@ vm_page::IncrementWiredCount()
|
||||
inline void
|
||||
vm_page::DecrementWiredCount()
|
||||
{
|
||||
ASSERT(fWiredCount > 0);
|
||||
|
||||
if (--fWiredCount == 0)
|
||||
cache_ref->cache->DecrementWiredPagesCount();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user