mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-05-31 19:08:55 -06:00
Refactor examples
This commit is contained in:
@@ -12,10 +12,8 @@ fn main() {
|
||||
let handle = std::thread::spawn(move || {
|
||||
unsafe { Allocator::register_current_thread().unwrap() }
|
||||
|
||||
let mut _n = unsafe { GLOBAL_ALLOCATOR.alloc(Layout::from_size_align(2 ^ 8, 8).unwrap()) };
|
||||
|
||||
loop {
|
||||
_n = unsafe { GLOBAL_ALLOCATOR.alloc(Layout::from_size_align(2 ^ 8, 8).unwrap()) }
|
||||
unsafe { GLOBAL_ALLOCATOR.alloc(Layout::from_size_align(2 ^ 8, 8).unwrap()) };
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user