Nicolas, here is what Steve Dekorte, the creator of libGC and the Io language, have to say about your questions. Do you still think that libGC is not suitable?

-- Jaime

PS. Steve email [EMAIL PROTECTED]

On 11 Jul 2006, at 09:59 pm, Jaime Vargas wrote:


Hi Steve,

I suggested Nicolas to use libGC in the NekoVM, he has some concerns.
Could you please help clarify them. Thx, Jaime

Begin forwarded message:


Nicolas have you consider the libGarbageCollector it is BSD licensed and used in the Io Language?
http://www.dekorte.com/projects/opensource/libGarbageCollector/
-- Jaime


I didn't know about it but looks like it's not most suitable :
- it has one CollectorMarker extra per allocated block - how many bytes ? (versus one bit per block for the Boehm GC)


2 pointers + 1 int (actually only need a 4 bits for the int)


- is it multithread safe ?


I haven't thought


(Steve, I spoke with Jer an he thinks that libGC is multithread safe, but probably not-reentrant)



- you need to handle write barriers and C locals registration by yourself,


This is true. But then conservative collectors are likely to be much slower, possibly unreliable, and involve pauses. There is no free lunch.

- Steve


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to