[fpc-devel] Possible memory leak in cthread.

Michael Van Canneyt michael at freepascal.org
Wed Aug 5 14:19:55 CEST 2009



On Wed, 5 Aug 2009, Graeme Geldenhuys wrote:

> Michael Van Canneyt wrote:
>> 
>> gru: >fpc -glh testh.pp
>> gru: >./testh
>> Heap dump by heaptrc unit
>> 4 memory blocks allocated : 1023/1040
>> 4 memory blocks freed     : 1023/1040
>> 0 unfreed memory blocks : 0
>> True heap size : 360448
>> True free heap : 360448
>
>
> Something different. Why does yours allocate so much more memory? 54 vs 1023?
>
> $ ./project1
> Heap dump by heaptrc unit
> 4 memory blocks allocated : 54/64
> 4 memory blocks freed     : 54/64
> 0 unfreed memory blocks : 0
> True heap size : 65536
> True free heap : 65536

Version 2.3.1 has a per-thread memory manager and some other features, 
I expect this causes some overhead.

Michael.



More information about the fpc-devel mailing list