[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gc] pthreads and libgc

From: Andy Wingo
Subject: Re: [Gc] pthreads and libgc
Date: Fri, 25 Mar 2011 15:48:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)


On Sun 20 Mar 2011 11:45, Ivan Maidanski <address@hidden> writes:

> If you already care about threads registering then you can compile your
> app with -D GC_NO_THREAD_REDIRECTS (thus avoiding GC initialization in
> response to a pthread_create).

Thanks for the pointer.  We were mistakenly redirecting pthread
functions not only in libguile, but also for our users.  I have fixed
that, and that helps this issue.

In addition, we were not calling GC_allow_register_threads().  I changed
to do so, and now the code in the original report (both with and without
GC_INIT in the main thread) works.

However it is now leaking memory.  I cannot reproduce the issue with
just libgc though, so it must be a Guile problem.

Thanks for the help!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]