about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-13 17:29:22 +0000
committerbors <bors@rust-lang.org>2021-02-13 17:29:22 +0000
commit3c10a880eca60379343a6c6d19dd5bda38ead55d (patch)
tree8018d176ef77379f7d3f776833257fa5f7d92064 /library/std/src/sys/unix/stack_overflow.rs
parent7e0241c63755ea28045d512b742f50b307874419 (diff)
parent5a58cf4943da9ea50c0cc534756bee31b4ac1899 (diff)
downloadrust-3c10a880eca60379343a6c6d19dd5bda38ead55d.tar.gz
rust-3c10a880eca60379343a6c6d19dd5bda38ead55d.zip
Auto merge of #81494 - cuviper:btree-node-init, r=Mark-Simulacrum
Initialize BTree nodes directly in the heap

We can avoid any stack-local nodes entirely by using `Box::new_uninit`, and since the nodes are mostly `MaybeUninit` fields, we only need a couple of actual writes before `assume_init`. This should help with the stack overflows in #81444, and may also improve performance in general.

r? `@Mark-Simulacrum`
cc `@ssomers`
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions