Re[2]: [Gc]: Problems with GC settings

Ivan Maidanski ivmai at
Mon Oct 5 09:17:19 PDT 2009


Juan Jose Garcia-Ripoll <juanjose.garciaripoll at> wrote:
> 2009/10/1 Ivan Maidanski <ivmai at>:
> > The things that are changed since 7.1:
> > - GC_PTHREADS/GC_xxx_THREADS are now deprecated
> >  for external usage (GC_THREADS should be used instead);
> > - now we have config.h (but it's only for building GC).
> I see a problem which is also present in 7.1 and that is the fact that
> the kind of thread model is not stored. More precisely,
> gc_pthreads_redirect.h has code like
> # ifdef pthread_sigmask
> #  undef pthread_sigmask
> # endif	 /* pthread_sigmask */
> # define pthread_sigmask GC_pthread_sigmask
> # define dlopen GC_dlopen
> #endif
> since GC_DARWIN_THREADS is defined nowhere, then pthread_sigmask is
> replaced with a function that is not present in the garbage collector,
> which was built using GC_DARWIN_THREADS.

GC_DARWIN_THREADS is defined in gc_config_macros.h. Is the condition not including your case? (Could anybody suggest a better one?)

> Again, the problem is that the garbage collector is not saving the
> settings it used when configure'ing

The settings are saved in config.h but only at GC build. You case save any settings you need in you project's config.h.

> Juanjo


More information about the Gc mailing list