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.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal