[fpc-pascal] extreme memory growth using cthreads and default heap manager

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Dec 11 10:21:15 CET 2015

On 2015-12-10 21:26, Seth Grover wrote:
> Why does using the default memory manager seem to leak memory like crazy if
> I'm doing heavy threading? I'm setting FreeOnTerminate to true in
> conjunction

I can confirm similar behaviour under 64-bit FreeBSD 10.1. Compiled
without cmem is ends up using over a Gig of memory.

What is interesting is that the library (when compiled without cmem)
shows 8000-10000 per sec output and takes 7-10 seconds to complete. When
I enable cmem, then the program outputs 81500/sec and completes within 1
second so I can't even check it's memory usage.

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list