News for hackers. Stuff that matters.
Re:Concurrency in Rust by bzbarsky on Sunday March 27, 2016 @01:38PM (#11370720)
> On Linux malloc never fails actually.

Not true. For example, it can fail if there is no big enough chunk of virtual address space available (i.e. your heap is fragmented enough and your attempted allocation is big enough). I've even seen 64-bit processes manage to do this, my mmapping lots of multi-GB things at once and then trying to do large allocations.

There are no comments on this comment yet.