chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Reschedule when a thread blocked on thread


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] Reschedule when a thread blocked on thread-join! is forcibly resumed
Date: Thu, 14 Jul 2016 21:27:24 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Jun 02, 2016 at 06:41:21PM +1200, Evan Hanson wrote:
> Hi folks,
> 
> After some digging I've found a small bug in our srfi-18 implementation
> that can have quite sinister effects on programs unlucky enough to be
> affected by it. Here's the commit message:
> 
> > When a thread that's waiting on another with `thread-join!` is forced
> > to execute -- usually on an interrupt, when the primordial thread is
> > forcibly resumed via `##sys#force-primordial` -- it must return
> > control to the scheduler if it can't yet be unblocked. Otherwise,
> > execution will return to the point in the program where the interrupt
> > occured, but without any bookkeeping to prevent that continuation from
> > being executed *again* on an ensuing call to `##sys#schedule`.

Finally got around to applying this one.  Pushed.  Thanks!

I've also applied this to the srfi-18 egg.  I didn't tag it because
nobody is using it yet, and we will probably mess with the modules some
more.  After the module structure has been finalised we should fix and
tag new releases of all the release/5 eggs.

Cheers,
Peter

Attachment: signature.asc
Description: Digital signature


reply via email to

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