Open skaftetryne opened 1 month ago
Yes, I guess that's the idea behind that phrasing. Do you think it needs rewording?
I think it should be removed, as it serves no other purpose than to confuse. Malloc is guaranteed to either return a pointer to a memory block of at least the requested size, or to fail. If the actual size of the block is larger than requested it does not matter - there is no way to know exactly how big it is. You only know that it's big enough.
The number of bytes allocated is guaranteed to be the same (or more? I guess it's rounded up to the page size when MP is enabled?) as requested, Malloc will return null if not.