When we create areas for large raw allocations there's no need to allocate
clear pages. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35286 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f1bdb8b92c
commit
30f2c6c859
@ -603,8 +603,9 @@ MemoryManager::AllocateRaw(size_t size, uint32 flags, void*& _pages)
|
||||
(flags & CACHE_ALIGN_ON_SIZE) != 0
|
||||
? B_ANY_KERNEL_BLOCK_ADDRESS : B_ANY_KERNEL_ADDRESS,
|
||||
size, B_FULL_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, 0,
|
||||
(flags & CACHE_DONT_WAIT_FOR_MEMORY) != 0
|
||||
? CREATE_AREA_DONT_WAIT : 0);
|
||||
((flags & CACHE_DONT_WAIT_FOR_MEMORY) != 0
|
||||
? CREATE_AREA_DONT_WAIT : 0)
|
||||
| CREATE_AREA_DONT_CLEAR);
|
||||
return area >= 0 ? B_OK : area;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user