forked from GitHub/bdwgc-rust
Refactor coroutines example
This commit is contained in:
@@ -9,10 +9,8 @@ use std::alloc::{GlobalAlloc, Layout};
|
||||
static GLOBAL_ALLOCATOR: Allocator = Allocator;
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
Allocator::initialize();
|
||||
unsafe { Allocator::initialize() }
|
||||
Allocator::disable_gc();
|
||||
}
|
||||
|
||||
let handle = Coroutine::spawn(move |_, _| {
|
||||
let bottom: u8 = 0;
|
||||
|
||||
Reference in New Issue
Block a user