[fpc-devel] Re: Compiler bottlenecks

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jul 15 11:14:13 CEST 2010


Michael Schnell wrote on Thu, 15 Jul 2010:

> Did somebody take a look at FastMM for Delphi ? (  
> http://sourceforge.net/projects/fastmm/ )
>
> Same seems to use a nice paradigm doing the Memory management for  
> threaded applications.

Then please explain that paradigm, since apparently you already looked at it.

In return, I will explain the FPC heap manager's paradigm: per thread,  
there is a separate heap manager so that in most cases no  
synchronisation is required. Only if memory is allocated in one thread  
and freed in another, then it will be added to a global locked  
structure. When a thread runs out of memory in its pools, it will  
first check this global (synchronised) structure before asking for  
more memory from the OS.


Jonas

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the fpc-devel mailing list