[fpc-devel] GetHeapStatus.TotalAllocated
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Feb 13 14:33:43 CET 2010
On 13 Feb 2010, at 12:44, Nikolai Zhubr wrote:
> 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.
The heap manager is now separate per thread so it offers much better performance. Keeping track of this information aggregated for all threads would slow things down again (even if it would be done using atomic operations).
> 2) GetHeapStatus.TotalAllocated sometimes return negative values, though I haven't been able to prepare a reasonably small example yet (should I?)
Yes.
Jonas
More information about the fpc-devel
mailing list