|
|
|
|
|
by bzbarsky
3741 days ago
|
|
> 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. |
|