3 ms·
> we have good support for "no allocations" and "panic on OOM or return Result on OOM" so if i understand it correctly, the ability is there by just "returning
by utxaa 5y ago
> we have good support for "no allocations" and "panic on OOM or return Result on OOM"
so if i understand it correctly, the ability is there by just "returning a result on oom" - linus is just asking for complete assurance that a panic will never happen? like say from a library?
- steveklabnik 5y agoIt is not 100% clear to me if he's asking for no panic in any possible situation. (AFAIK, the BUG macro in the kernel does something very similar, so I would find it slightly surprising, though he may only want it to happen "explicitly" or something, we'll just have to see.) It is clear to me that he is asking for no panics for OOM.
- utxaa 5y ago> It is clear to me that he is asking for no panics for OOM. agreed. which is why i'm confused. maybe this is a non-issue that has exploded into an issue :) thanks.