mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Use new hole_list_allocator instead of bump_allocator
This commit is contained in:
@@ -21,7 +21,7 @@ extern crate x86;
|
||||
#[macro_use]
|
||||
extern crate once;
|
||||
|
||||
extern crate bump_allocator;
|
||||
extern crate hole_list_allocator;
|
||||
extern crate alloc;
|
||||
#[macro_use]
|
||||
extern crate collections;
|
||||
@@ -46,6 +46,10 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) {
|
||||
use alloc::boxed::Box;
|
||||
let heap_test = Box::new(42);
|
||||
|
||||
for i in 0..10000 {
|
||||
format!("Some String");
|
||||
}
|
||||
|
||||
println!("It did not crash!");
|
||||
|
||||
loop {}
|
||||
|
||||
Reference in New Issue
Block a user