You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One should never rely on the number of bytes actually allocated corresponding to the number requested.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: