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
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