[fpc-pascal] Boehm GC
v.krishnakumar at gmail.com
Wed Mar 18 18:36:43 CET 2009
On Wed, Mar 18, 2009 at 10:50 PM, Krishna <v.krishnakumar at gmail.com> wrote:
> On Wed, Mar 18, 2009 at 9:04 PM, Marco van de Voort <marcov at stack.nl> wrote:
>> In our previous episode, Krishna said:
>>> > I'm new to fpc and pascal, i.e. I've never done a project in it, but
>>> > i've been following the lists for a while and dabbling.
>>> > I like using a garbage collector and I know you can replace the memory
>>> > manager in fpc so i guess it's probably trivial to replace the standard
>>> > with boehm. Wondered if anyone's done it and how they got on, and if
>>> > there are issues with the idea.
>>> Very many years ago I asked the same question on this mailing list :)
>>> Check it out here:
>>> IIRC, it worked on Win32 with boehmgc linked in as a DLL. Don't
>>> remember if it was faster than the default memory manager though.
>> I found this:
>> - http://cc.embarcadero.com/Item/21646
> not able to download. getting timed out.
> anyway, I tried compiling the old code and it failed. TMemoryManager
> seems to have changed a bit. Adjusted the code to match the cmem
> example given in the manual and I got errors saying that InitThread ,
> DoneThread and RelocateHeap are undefined fields in TMemoryManager.
> Compiled fine when those three lines were commented out.
> It did not crash on Linux! and it seems to collect as well!! (using
> libgc 6.6 that comes with opensuse 11.1)
oops! posted too early. mseide with boehmgc segfaults at startup (in
I love deadlines. I like the whooshing sound
they make as they fly by.
-- Douglas Adams
More information about the fpc-pascal