[fpc-pascal] Multiple thread heaps

Florian Klämpfl florian at freepascal.org
Sun Jun 17 20:34:12 CEST 2018


Am 17.06.2018 um 20:12 schrieb Terry Mead:
> It is not a problem it just makes it a bit tricky tracking memory usage because of the delay between releasing the 
> memory and it the reported heap usage decreasing.  

Just install your own heap manager which is a wrapper around the current one and track allocations/deallocations. FPC 
does not do this because these values have no real meaning on a multi threaded/multi process system and because it must 
be done by atomic operations which slow down things.

> I haven't had a good look at the source but maybe there is some way 
> to take these pending releases into account.



More information about the fpc-pascal mailing list