This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ 20628] make mallinfo saturating
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: DJ Delorie <dj at redhat dot com>, <carlos at redhat dot com>, <libc-alpha at sourceware dot org>
- Date: Thu, 6 Oct 2016 20:43:01 +0000
- Subject: Re: [PATCH] [BZ 20628] make mallinfo saturating
- Authentication-results: sourceware.org; auth=none
- References: <xnmvihpggy.fsf@greed.delorie.com> <c2855d0c-f026-be10-2091-594983544fb3@cs.ucla.edu>
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