4 #![allow(unused_must_use)]
5 // Makes sure that zero-initializing large types is reasonably fast,
6 // Doing it incorrectly causes massive slowdown in LLVM during
9 // pretty-expanded FIXME #23616
10 // ignore-emscripten no threads support
12 #![feature(intrinsics)]
14 use std::{mem, thread};
16 const SIZE: usize = 1024 * 1024;
19 // do the test in a new thread to avoid (spurious?) stack overflows
21 let _memory: [u8; SIZE] = unsafe { mem::zeroed() };