map_backing_store(): Also consider the B_OVERCOMMITTING_AREA for private
maps. The new cache will be created in over-committing mode. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
59d0c2e45e
commit
278f7e57cd
@ -776,9 +776,10 @@ map_backing_store(VMAddressSpace* addressSpace, VMCache* cache,
|
||||
VMCache* newCache;
|
||||
|
||||
// create an anonymous cache
|
||||
bool isStack = (protection & B_STACK_AREA) != 0;
|
||||
status = VMCacheFactory::CreateAnonymousCache(newCache,
|
||||
(protection & B_STACK_AREA) != 0, 0, USER_STACK_GUARD_PAGES, true,
|
||||
VM_PRIORITY_USER);
|
||||
isStack || (protection & B_OVERCOMMITTING_AREA) != 0, 0,
|
||||
isStack ? USER_STACK_GUARD_PAGES : 0, true, VM_PRIORITY_USER);
|
||||
if (status != B_OK)
|
||||
goto err1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user