Don't always commit memory in VMAnonymousCache::Fault() for
overcommitting caches. If the page in question was just not mapped or swapped out, we would increase the committment unnecessarily (potentially even beyond the size of the cache). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -697,7 +697,7 @@ VMAnonymousCache::WriteAsync(off_t offset, const iovec* vecs, size_t count,
|
||||
status_t
|
||||
VMAnonymousCache::Fault(struct vm_address_space *aspace, off_t offset)
|
||||
{
|
||||
if (fCanOvercommit) {
|
||||
if (fCanOvercommit && LookupPage(offset) == NULL && !HasPage(offset)) {
|
||||
if (fGuardedSize > 0) {
|
||||
uint32 guardOffset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user