[PATCH] [BZ 20628] make mallinfo saturating

Joseph Myers joseph@codesourcery.com
Thu Oct 6 20:43:00 GMT 2016


On Thu, 6 Oct 2016, Paul Eggert wrote:

> On 10/06/2016 09:52 AM, DJ Delorie wrote:
> > with a 32-bit memory space none of the values will "happen" to cause an
> > overflow, because we never have more than 2^32  bytes of memory or 2^32
> > objects to count.
> 
> The code should work even when INTERNAL_SIZE_T is 32 bits and size_t is 64
> bits. Although perhaps there are other problems with such configurations, we

Actually, is there really a use for the INTERNAL_SIZE_T abstraction at 
all?  I think it might make sense just to replace INTERNAL_SIZE_T by 
size_t everywhere.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list