[Armedbear-devel] Non-zero timeouts CL:SLEEP and THREADS:OBJECT-WAIT below the timer Planck limit interpolated as a nanosecond

James M. Lawrence llmjjmll at gmail.com
Tue Apr 29 15:57:07 UTC 2014


On Sat, Apr 19, 2014 at 1:40 PM, Mark Evenson <evenson at panix.com> wrote:
>>
>> One thing that puzzles me -- I checked old versions of ABCL back to
>> 1.0.0, and none gave an indefinite wait for (sleep 0). Do you remember
>> why you changed (sleep 0) to (sleep 0.01) in thread-yield in February
>> 2011? I changed it back to (sleep 0) in the pull request, but I didn't
>> realize I was undoing your change until this moment.
>>
>>
>
> As far as I understand it, it is a change in the underlying JVM.
>
> Blame SUNW^H^H^H^HORCL.

bt:thread-yield is going to have rare use on implementations with
pre-emptive threads such as ABCL, and it's difficult to contrive a
case where it matters. I would have left it at (sleep 0) except that I
don't know why the 2011 change was made. What was the JVM change and
is it relevant now?

_______________________________________________
Armedbear-devel mailing list
Armedbear-devel at common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel



More information about the armedbear-devel mailing list