[squeak-dev] Process bug introduced in 3.10

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Process bug introduced in 3.10

Michael van der Gulik-2


On Tue, Jun 10, 2008 at 9:20 AM, <[hidden email]> wrote:
Andreas Raab writes:
 > Of course, if I'd ever learn how to spell "timeout" correctly, I might
 > find out that that's not the problem. Back to the drawing board... (but
 > I'm still not convinced that the problem isn't somewhere in the nested
 > unwind-protect stuff).

It definately looks like it's caused by the changes to Delay>>wait.

 wait
       "Schedule this Delay, then wait on its semaphore. The current
        process will be suspended for the amount of time specified
        when this Delay was created."

       self schedule.
       [delaySemaphore wait] ifCurtailed:[self unschedule].

If I comment out the "self unschedule" it works reliably. If I replace
the "self unschedule" with "Processor yield" the bug occurs but takes
a few more iterations (about 10 instead of 1 or two).


Is this bug recorded on bugs.squeak.org?

Gulik.

--
http://people.squeakfoundation.org/person/mikevdg
http://gulik.pbwiki.com/

12