Hi Mike,
I have encountered GC issues as well. I think an error message with
something about "GC_INNER_STACK_CLEAR" was displayed infinitely at the
end of my multithreaded programs... The quickest way to solve that
problem was to simply disable the garbage collector, which is what I've
done. (This can be done by setting USE_GC to 0 in object/id/libid.c)
However, I've also discovered that the GC already should have
multithreading support. I thought the only change I needed to make was
to add the flags "-DGC_LINUX_THREADS -DPARALLEL_MARK
-DTHREAD_LOCAL_ALLOC" to the CFLAGS variable in object/gc6.7/Makefile.
Just doing that didn't seem to be sufficient though, since the gcc
linker complained about every call to the pthreads library. I'm guessing
I should add another -lpthread flag somewhere, but I haven't figured out
yet where exactly...
Cheers,
Tim
Michael Roberts schreef:
Hi, i find this intersting. I had made a start a while back on trying
to naively integrate pthreads into COLA. I got distracted from that
but at the time got stuck with what I thought were GC issues. Has
this been a problem for you? do you do anything specific in your build
for multi-threaded GC support.
many thanks,
Mike
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc