You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this lets you create an allocator that doesn't depend on lazy_init.
Example below:
``` rust
static HEAP: Mutex<Heap> = Mutex::new(Heap::new());
unsafe fn before_main() {
HEAP.lock().init(BOTTOM, SIZE);
}
fn main() {
// Use the allocator
}
```
0 commit comments