* While r33037 fixed the alignment of areas put into reserved areas, it actually
broke their placement at the end of the reserved area, which was the main reason #4778 happened so often (it would have been more hidden else). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1252,10 +1252,13 @@ second_chance:
|
|||||||
// The new area will be placed at the end of the
|
// The new area will be placed at the end of the
|
||||||
// reserved area, and the reserved area will be resized
|
// reserved area, and the reserved area will be resized
|
||||||
// to make space
|
// to make space
|
||||||
|
alignedBase = ROUNDDOWN(next->base + next->size - size,
|
||||||
|
alignment);
|
||||||
|
|
||||||
foundSpot = true;
|
foundSpot = true;
|
||||||
next->size = alignedBase - next->base;
|
next->size = alignedBase - next->base;
|
||||||
last = next;
|
|
||||||
area->base = alignedBase;
|
area->base = alignedBase;
|
||||||
|
last = next;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user