4 ms·
Linus Torvalds on Rust alloc failures
- steveklabnik 4y ago(2021) Note that all of this, as far as I know, has been fully addressed. As Linus says in the email, he’s asking questions. The Rust compiler does not insert hidden allocations, for example.
- MBCook 4y agoThe answer from Miguel Ojeda, who made the patch series: “Of course! What happens here is that we use, for the moment, `alloc`, which is part of the Rust standard library. However, we will be customizing/rewriting `alloc` as needed to customize its types (things like `Box`, `Vec`, etc.) so that we can do things like pass allocation flags, ensure we always have fallible allocations, perhaps reuse some of the kernel data structures, etc. Cheers, Miguel”
- steveklabnik 4y agoThey also sent those patches upstream, as well, though in my understanding they’ll still use a fork that turns the panic-ing versions off. I haven’t kept up with the patch set super closely lately though…