Compare commits
3 Commits
25ea67399a
...
42e1700e7a
Author | SHA1 | Date | |
---|---|---|---|
42e1700e7a | |||
f0ce6c36de | |||
2951c539b1 |
@ -166,7 +166,12 @@ 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) { unreachable(); }
|
if (next->status & BLOCK_START_MEM)
|
||||||
|
{
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
@ -190,7 +195,12 @@ 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) { unreachable(); }
|
if (block->status & BLOCK_START_MEM)
|
||||||
|
{
|
||||||
|
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-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-checking --enable-initfini-array
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build()
|
do_build()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user