[fpc-pascal] negative numbers in CurrHeapUsed and MaxHeapUsed

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Oct 22 22:07:26 CEST 2010


On 22 Oct 2010, at 21:50, Bernd Kreuss wrote:

> On 22.10.2010 21:23, Jonas Maebe wrote:
> 
>> It's only a cosmetic problem, there is no problem with the heap itself. It's a known bug, related to reallocmem: http://bugs.freepascal.org/view.php?id=15805
> 
> If I understand this correctly then these are only meaningless counters
> that come out of sync.

Yes.

> Is there a way to ask the heap manager directly
> for the "real" numbers? The heap manager must somehow be able to know
> this or calculate this, it cannot rely on these broken counters or it
> would eventually crash or otherwise misbehave, wouldn't it?

The heap manager does not depend on any counters, so there are no real numbers to request. Those (meaningless) counters are the only ones that exist.


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101022/253ac131/attachment.html>


More information about the fpc-pascal mailing list