mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-09-20 17:26:03 -06:00
15 lines
262 B
Rust
15 lines
262 B
Rust
use bdwgc_alloc::Allocator;
|
|
|
|
#[global_allocator]
|
|
static GLOBAL_ALLOCATOR: Allocator = Allocator;
|
|
|
|
fn main() {
|
|
unsafe { Allocator::initialize() }
|
|
|
|
let mut _n: Box<[u8; 2 ^ 8]> = Box::new([0; 2 ^ 8]);
|
|
|
|
loop {
|
|
_n = Box::new([0; 2 ^ 8]);
|
|
}
|
|
}
|