[fpc-pascal] question about FPC heap and threading

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Aug 12 22:25:49 CEST 2010


Seth Grover wrote:
> These are very simple questions, but I just want to make sure a few of
> my assumptions are correct:
> 
> 1. The default FPC heap manager uses one heap per thread, right? I am
> basing this assumption off of things I have read in various threads on
> this and other mailing lists since around 2.2.x-ish. Looking at
> heap.inc I see that the "freelists" variable is a threadvar, which
> indicates to me that each thread has its own heap.

If that's the case and also applies to Lazarus it's going to save me a 
lot of effort, so I'd be interested to see this confirmed as well.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list