3 ms·
> And Linux just says no. Linux might say yes, even if the memory isn't available. See notes of malloc: "This means that when malloc() returns non-NULL there
by someweirdperson 4y ago
> And Linux just says no.
Linux might say yes, even if the memory isn't available. See notes of malloc:
"This means that when malloc() returns non-NULL there is no guarantee that the memory really is available." [0]
[0] https://man7.org/linux/man-pages/man3/malloc.3.html https://man7.org/linux/man-pages/man3/malloc.3.html