rust-lang / wg-allocators

Home of the Allocators working group: Paving a path for a standard set of allocator traits to be used in collections!
http://bit.ly/hello-wg-allocators
203 stars 9 forks source link

Controlling amount of information in AllocError and OOM panic payloads #121

Open kornelski opened 5 months ago

kornelski commented 5 months ago

Related to discussion here: https://internals.rust-lang.org/t/questioning-usefulness-of-alignment-in-oom-errors-and-handlers/20233/7

Currently OOM error handler and OOM panic payload gets Layout as the only bit of information. This is too little and too much information at the same time.