Re[6]: [Gc] GC_get_stack_base() fallure on Mac OS X 10.6.7

Ivan Maidanski ivmai at mail.ru
Sun May 22 07:21:49 PDT 2011


Hi,

I've run ./configure (without any options) on iPhone and it generated config.h with GC_DARWIN_THREADS on, so multi-threading is on by default.

Regards.

Sun, 22 May 2011 15:43:33 +0200 Hans Aberg <haberg-1 at telia.com>:

> On 22 May 2011, at 15:20, Ivan Maidanski wrote:
> 
> > I don't understand. If the client (guile) creates several threads then it
> should define GC_THREADS on gc.h inclusion (so, if libgc is built as
> single-threaded, you will get a linkage error (GC_pthread_create or
> GC_register_my_thread is undefined)). Otherwise (if the client does not
> manipulate threads), single-threaded libgc should fit the client.
> > 
> > Where is the problem? And, why is it Darwin-specific?
> 
> On Mac OS X, as far as I know, all libraries have been thread safe for years.
> So the expectation would be to build with threads enabled.
> 
> Is there a point building it without threads on such a platform?
> 
> Hans



More information about the Gc mailing list