1

fixed wrong bump allocator init

This commit is contained in:
churl
2022-05-07 14:30:40 +02:00
parent f6789b3950
commit 7f3c70f87a
10 changed files with 61 additions and 73 deletions

3
c_os/user/HeapDemo.cc Normal file → Executable file
View File

@ -34,4 +34,7 @@ void heap_demo() {
MyObj* b = new MyObj(10);
allocator.dump_free_memory();
allocator.alloc(1024 * 1024); // should fail as only 1024 * 1024 - (4 + 4) bytes remain
allocator.dump_free_memory();
}

0
c_os/user/HeapDemo.h Normal file → Executable file
View File

0
c_os/user/MyObj.h Normal file → Executable file
View File