[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: mallinfo can't handle >2g values
From: |
Matt Liberty |
Subject: |
RE: mallinfo can't handle >2g values |
Date: |
Wed, 12 Mar 2003 08:30:03 -0800 |
If you run the test program I included with my original report it
doesn't show this working. I seems to just top out below the current
usage. Perhaps there are internal issues?
I would be happy if you fixed mallinfo to work with the casting solution
you give below or to have an alternate interface that uses longs.
Eventually linux will support 64bit applications and the casting
solution won't work, presumably this is why sun uses longs.
Thanks,
-Matt
-----Original Message-----
From: Wolfram Gloger [mailto:address@hidden
Sent: Wednesday, March 12, 2003 7:46 AM
To: Matt Liberty; address@hidden; address@hidden;
address@hidden
Subject: Re: mallinfo can't handle >2g values
Replying to myself, sorry:
> However, we could do unsigned arithmetic internally and hand out
> "negative" ints in struct mallinfo that would "correctly" cast back to
> unsigned, up to 4GB-1. Would that be enough for you?
It was just pointed out to me by Doug Lea that this is already the
case in the current code. If you cast back the int values to
unsigned, the stats should be correct even if >2GB.
Regards,
Wolfram.