* Do not reserve memory when the area is too large. This fixes #7740 where the
reserved amount was simply too small, but also works around address space waste with many larger bitmaps. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42298 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2006-2011, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -22,7 +22,7 @@ class ServerMemoryAllocator {
|
||||
status_t InitCheck();
|
||||
|
||||
status_t AddArea(area_id serverArea, area_id& _localArea, uint8*& _base,
|
||||
bool readOnly = false);
|
||||
size_t size, bool readOnly = false);
|
||||
void RemoveArea(area_id serverArea);
|
||||
|
||||
status_t AreaAndBaseFor(area_id serverArea, area_id& area, uint8*& base);
|
||||
|
||||
Reference in New Issue
Block a user