Re: bugs in queue operations

Michael Sperber <[email protected]> Tue, 22 Dec 2009 15:15:25 +0100
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
Taylor R Campbell <[email protected]> writes:

> Several queue operations have optimistic concurrency bugs because they
> don't use provisional readers and writers.  For example, if you call
> QUEUE-LENGTH twice in a single transaction without performing any
> destructive operations on the queue in the meantime, it should, but
> doesn't, return the same answer both times, whether or not other
> threads have committed changes to the queue.  The problem is that
> QUEUE-LENGTH uses the non-provisional LENGTH.  At the end of this
> message is a program demonstrating this bug.

Thanks for the report - I just pushed a patch (from Robert Ransom -
thanks!) to fix the problem.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla