[Gc] Boehm GC + Thread Building Blocks

Alexander Herz alexander.herz at mytum.de
Fri May 4 04:56:12 PDT 2012


Hi,

I'm trying to use boehm gc in conjunction with TBB.
I compile TBB with

#define GC_THREADS
#include <gc_cpp.h>

in what I hope to be the appropriate places.

Still I get "Collecting from unknown thread." when a collection is 
triggered from a TBB worker thread.
 From the app's main thread everything is fine.

Is there an easy way (on my std. ubuntu) to figure out if/where 
pthread_create is bypassing the boehm implementation? Do I need to do 
more than
#define GC_THREADS
#include <gc_cpp.h>??

Has anybody any experience with this??

Regards,
Alex


More information about the Gc mailing list