Re: possible gc/weak hash table bug

2011-03-25 Thread Andy Wingo
On Fri 18 Mar 2011 12:51, l...@gnu.org (Ludovic Courtès) writes: michaelawells michaelawe...@gmail.com writes: size_t len = SCM_HASHTABLE_N_ITEMS (table); while (k--) { size_t removed; SCM alist = SCM_SIMPLE_VECTOR_REF (buckets, k); alist = scm_fixup_weak_alist

Re: [Gc] pthreads and libgc

2011-03-25 Thread Andy Wingo
Greets, On Sun 20 Mar 2011 11:45, Ivan Maidanski iv...@mail.ru 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

Re: [Gc] pthreads and libgc

2011-03-25 Thread Andy Wingo
On Sun 20 Mar 2011 04:51, Boehm, Hans hans.bo...@hp.com writes: For newer collectors, it might be possible to instead arrange for pthread_create not to be redirected to GC_pthread_create, and for threads that need to be known to the GC to register themselves. I haven't thought through

Re: exit dynamic wind

2011-03-25 Thread Andy Wingo
On Fri 25 Mar 2011 02:52, Neil Jerram n...@ossau.uklinux.net writes: Andy Wingo wi...@pobox.com writes: I have pushed something that causes the stack to be unwound before exiting. Please let me know if you still see problems. Unfortunately, yes. Now when snarf-check-and-output-texi is

Guile 2.0.0 manual extensions example

2011-03-25 Thread Hans Aberg
The example in the Guile 2.0.0 manual, Writing Guile Extensions, sec. 2.4, uses deprecated code, and does not indicate correct compiling options. Below is a modified code, which I compiled (Mac OS X 10.6.6) using gcc `guile-config compile` `guile-config link` -dynamiclib -o libguile-bessel.so

Re: Guile 2.0.0 manual extensions example

2011-03-25 Thread Mark Harig
On Fri, Mar 25, 2011 at 05:50:58PM +0100, Hans Aberg wrote: The example in the Guile 2.0.0 manual, Writing Guile Extensions, sec. 2.4, uses deprecated code, and does not indicate correct compiling options. Below is a modified code, which I compiled (Mac OS X 10.6.6) using gcc

Re: Guile 2.0.0 manual extensions example

2011-03-25 Thread Hans Aberg
On 25 Mar 2011, at 18:25, Mark Harig wrote: Andy Wingo reported that he had fixed the deprecated code in this message (after Guile 2.0 was released): http://lists.gnu.org/archive/html/bug-guile/2011-02/msg00114.html OK. Also, there has been some discussion of using guile-config versus

Re: possible gc/weak hash table bug

2011-03-25 Thread michaelawells
On Fri 18 Mar 2011 12:51, address@hidden (Ludovic CourtÃs) writes: michaelawells address@hidden writes: size_t len = SCM_HASHTABLE_N_ITEMS (table); while (k--) { size_t removed; SCM alist = SCM_SIMPLE_VECTOR_REF (buckets, k); alist =

Manual bug, old manuals.

2011-03-25 Thread Anton Vidovic
Hello Guilers, In the 2.0 manual, probably in 1.8 and 1.6 also, in section 2.4 Writing guile extensions, the function scm_num2dbl is used in the code example. This function was, as I could find out, deprecated in 1.4 and removed in 1.6. Second, I would ask you to put back the 1.8 manual on

Re: possible gc/weak hash table bug

2011-03-25 Thread michaelawells
I rebuilt the gc-7.1 library, this time using the --enable-threads=posix configure option. The exact same library was built. It would appear that configure, at least on my target, enables threads by default. On Mar 25, 2011, at 4:48 PM, michaelawells wrote: On Fri 18 Mar 2011 12:51,