[fpc-devel] GetHeapStatus.TotalAllocated

Marco van de Voort marcov at turtle.stack.nl
Sat Feb 13 13:32:42 CET 2010


In our previous episode, Nikolai Zhubr said:
> after switching to FPC 2.4.0 I've noticed that:
> 
> 1) GetHeapStatus.TotalAllocated does not seem to reflect size of 
> allocations made by other threads anymore (I can provide a small 
> example). I think such behaviour is not quite correct.

Afaik that is a feature? 2.4.0 sports a threaded memorymanagers where
threads can allocate memory without accessing global locks (and thus
statistics)

Note that that doesn't mean it is ok, but it might not be fixable 100%
 
> 2) GetHeapStatus.TotalAllocated sometimes return negative values, though 
> I haven't been able to prepare a reasonably small example yet (should I?)

Please attach example programs to a bugreport. Thank you.



More information about the fpc-devel mailing list