Request for feedback on WG14 proposal N3849 (alloc_at_least)

Charles Munger clm@google.com
Wed Apr 22 23:02:31 GMT 2026


https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3849.pdf

I have a proposal for the next C standard to add a new allocator API, and
I'd like to solicit feedback from glibc's developers to ensure it's not
going to cause you problems. Essentially this defines a new function,
alloc_at_least, that returns both a pointer to the newly allocated memory
and the actual size available. This would permit programs to use whatever
space is available without the challenges associated with
malloc_usable_size, like requiring a call to realloc. I'll relay whatever
feedback you provide here (positive or negative) to the committee.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260422/71b598c7/attachment.htm>


More information about the Libc-alpha mailing list