Author: bonefish Date: 2010-04-30 13:55:27 +0200 (Fri, 30 Apr 2010) New Revision: 36550 Changeset: http://dev.haiku-os.org/changeset/36550/haiku Modified: haiku/trunk/src/system/kernel/vm/vm.cpp Log: map_backing_store(): Also consider the B_OVERCOMMITTING_AREA for private maps. The new cache will be created in over-committing mode. Modified: haiku/trunk/src/system/kernel/vm/vm.cpp =================================================================== --- haiku/trunk/src/system/kernel/vm/vm.cpp 2010-04-30 11:29:14 UTC (rev 36549) +++ haiku/trunk/src/system/kernel/vm/vm.cpp 2010-04-30 11:55:27 UTC (rev 36550) @@ -776,9 +776,10 @@ 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;