* Patch from Olivier Coursiere: restore sFreeHeapSize in case of resize_area failure
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29013 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -214,6 +214,7 @@ hoardSbrk(long size)
|
|||||||
|
|
||||||
if (resize_area(sHeapArea, pageSize) < B_OK) {
|
if (resize_area(sHeapArea, pageSize) < B_OK) {
|
||||||
// out of memory - ToDo: as a fall back, we could try to allocate another area
|
// out of memory - ToDo: as a fall back, we could try to allocate another area
|
||||||
|
sFreeHeapSize = oldHeapSize;
|
||||||
hoardUnlock(sHeapLock);
|
hoardUnlock(sHeapLock);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user