diff options
| author | James Miller <james@aatch.net> | 2015-01-17 17:04:15 +1300 |
|---|---|---|
| committer | James Miller <james@aatch.net> | 2015-01-19 09:21:23 +1300 |
| commit | 0859e5ebb319ceddcce01ddb63470d8f59860aba (patch) | |
| tree | 856cc6c06996da5701272442f691244245bd60b1 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | dcaeb6aa23ecba2dc2af870668a9239136d20fa3 (diff) | |
| download | rust-0859e5ebb319ceddcce01ddb63470d8f59860aba.tar.gz rust-0859e5ebb319ceddcce01ddb63470d8f59860aba.zip | |
Use `zero_mem` instead of a zerointializer for `init` intrinsic
LLVM gets overwhelmed when presented with a zeroinitializer for a large type. In unoptimised builds, it generates a long sequence of stores to memory. In optmised builds, it manages to generate a standard memset of zero values, but takes a long time doing so. Call out to the `llvm.memset` function to zero out the memory instead.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
