Re: Does anyone actually use threads with guile?

2008-11-13 Thread Andy Wingo
Hi Linas, [cc'ing them all, but followups to just one please -- bug-guile is probably best] For my part I apologize for not having the cycles to poke this more thoroughly. Fortunately you are a good programmer and can figure things out :) History: pthread support was new with 1.8, as you probabl

[PATCH] fix for Re: crash in gc with upside-down stack

2008-11-13 Thread Linas Vepstas
Patch below; I'm also attaching the same patch, in case gmail is scrambling this thing :-/ Also, I've long had a generic assignment on file with the FSF. --linas The patch below fixes a crash during garbage collection, where, during the mark-stack phase, the top and bottom of the stack are found

Critical sections

2008-11-13 Thread Ludovic Courtès
Hi, Andy Wingo <[EMAIL PROTECTED]> writes: > I think the idea behind the check sounds good -- it is incorrect to > throw from within a critical section, and the check detects this. > > But the check is incorrect as you noticed, it should be checking if the > current thread is in a critical sectio

Re: Does anyone actually use threads with guile?

2008-11-13 Thread Linas Vepstas
2008/11/13 Andy Wingo <[EMAIL PROTECTED]>: > For my part I apologize for not having the cycles Fine, I'm hacking around it for now, but would like to see something for 1.8.6. > On Thu 13 Nov 2008 05:56, "Linas Vepstas" <[EMAIL PROTECTED]> writes: > >> Basically, at any given time, some thread mig

Re: [PATCH] fix for Re: crash in gc with upside-down stack

2008-11-13 Thread Ludovic Courtès
Hi, "Linas Vepstas" <[EMAIL PROTECTED]> writes: > The patch below fixes a crash during garbage collection, where, during > the mark-stack phase, the top and bottom of the stack are found to be > in backwards order, typically because scm_with_guile() was called when > the stack is much shorter tha