mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Fix: hole_list_allocator instead of linked_list_allocator (#161)
Reported by @simonlovgren in #160
This commit is contained in:
@@ -834,7 +834,7 @@ in src/lib.rs:
|
||||
in memory::init in src/memory/mod.rs:
|
||||
|
||||
-use bump_allocator::{HEAP_START, HEAP_SIZE};
|
||||
+use linked_list_allocator::{HEAP_START, HEAP_SIZE};
|
||||
+use hole_list_allocator::{HEAP_START, HEAP_SIZE};
|
||||
```
|
||||
|
||||
Our kernel uses the new allocator now, so we can deallocate memory without leaking it. The example from above should work now without causing an OOM situation:
|
||||
|
||||
Reference in New Issue
Block a user