Use multilist_index_t instead of multiple bitmap allocators

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent d61cf2303f
commit b0809b33aa
3 changed files with 47 additions and 54 deletions
+4 -1
View File
@@ -1308,7 +1308,10 @@ void test_full_alloc()
{
assert(heap.get_meta_nearfull_blocks() == 4);
_test_big_write(heap, dsk, 1, (40+i)*0x20000, 1, (40+i)*0x20000);
assert(heap.get_meta_block_used_space(i % 4) == (epb*b_4s + big_write_size*(i/4+1)));
}
for (int i = 0; i < 4; i++)
{
assert(heap.get_meta_block_used_space(i) == (epb*b_4s + big_write_size*2));
}
// New writes are prevented if it may lead to inability to overwrite any object