Compare commits
5 Commits
42e1700e7a
...
25ea67399a
Author | SHA1 | Date | |
---|---|---|---|
25ea67399a | |||
c6daf8d690 | |||
7d826df3e4 | |||
cdab3dea90 | |||
2780ee2ebc |
@ -166,12 +166,7 @@ static Result<void> combine_forward(HeapBlock* block)
|
|||||||
|
|
||||||
if (next->status & BLOCK_END_MEM)
|
if (next->status & BLOCK_END_MEM)
|
||||||
{
|
{
|
||||||
if (next->status & BLOCK_START_MEM)
|
if (next->status & BLOCK_START_MEM) { unreachable(); }
|
||||||
{
|
|
||||||
const usize pages = ceil_div(next->full_size + sizeof(HeapBlock), PAGE_SIZE);
|
|
||||||
TRY(release_pages_impl(next, pages));
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
block->status |= BLOCK_END_MEM;
|
block->status |= BLOCK_END_MEM;
|
||||||
}
|
}
|
||||||
@ -195,12 +190,7 @@ static Result<HeapBlock*> combine_backward(HeapBlock* block)
|
|||||||
|
|
||||||
if (block->status & BLOCK_END_MEM)
|
if (block->status & BLOCK_END_MEM)
|
||||||
{
|
{
|
||||||
if (block->status & BLOCK_START_MEM)
|
if (block->status & BLOCK_START_MEM) { unreachable(); }
|
||||||
{
|
|
||||||
const usize pages = ceil_div(block->full_size + sizeof(HeapBlock), PAGE_SIZE);
|
|
||||||
TRY(release_pages_impl(block, pages));
|
|
||||||
return last;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
last->status |= BLOCK_END_MEM;
|
last->status |= BLOCK_END_MEM;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ do_patch()
|
|||||||
|
|
||||||
do_configure()
|
do_configure()
|
||||||
{
|
{
|
||||||
$srcdir/configure --prefix=/usr --target=$LUNA_ARCH-luna --host=$LUNA_ARCH-luna --disable-nls --with-build-sysroot=$LUNA_BASE --enable-languages=c,c++ --enable-checking --enable-initfini-array
|
$srcdir/configure --prefix=/usr --target=$LUNA_ARCH-luna --host=$LUNA_ARCH-luna --disable-nls --with-build-sysroot=$LUNA_BASE --enable-languages=c,c++ --enable-initfini-array
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build()
|
do_build()
|
||||||
|
Loading…
Reference in New Issue
Block a user