Fix a bug where allocator was unable to allocate up to last (n%64) blocks, add tests for it

This commit is contained in:
Vitaliy Filippov
2021-03-13 02:19:02 +03:00
parent dd76eda5e5
commit f49fd53d55
3 changed files with 40 additions and 21 deletions
+1
View File
@@ -8,6 +8,7 @@
// Hierarchical bitmap allocator
class allocator
{
uint64_t total;
uint64_t size;
uint64_t free;
uint64_t last_one_mask;