News for hackers. Stuff that matters.
Re:Asynchronous IO in Rust by Gankro on Thursday September 17, 2015 @01:04AM (#10231671)
Minorish point: a true OOM won't panic, it'll abort the program completely. Some APIs may identify that the requested amount of memory is impossible (would overflow) and panic instead, though.

Aborting once the allocator has actually been invoked is important for perf and exception safety, though we have briefly mused allowing it to panic: https://github.com/rust-lang/rust/issues/26951

There are no comments on this comment yet.