This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ 20628] make mallinfo saturating


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]