[Gbbopen-developer] portable threads on sbcl 64bit linux tests fail with pristine source
Antony Sequeira
antony.sequeira at gmail.com
Tue Oct 23 02:29:58 EDT 2007
Hi
I am interested in using the portable threads package.
Downloaded the current tar and tried to run the
source/tools/test/portable-threads-test.lisp
I had to make a few changes before that was successful.
I changed all uses of
most-positive-fixnum
to some large value that fits in 32 bit
The use of most-positive-fixnum to the sleep call returns immediately
so tests that relied on 'sleep for a loooong time' failed
The use of most-positive-fixnum in
(let ((cv (make-condition-variable)))
(with-lock-held (cv)
(condition-variable-wait-with-timeout cv most-positive-fixnum)))
causes
The value 1152921504606846975 is not of type (UNSIGNED-BYTE 29).
[Condition of type TYPE-ERROR]
The second change was to reduce the thread count in
;; Do spawn and die timing:
(let ((iterations
;; Spawning in OpenMCL is slow (10K works, but we don't want to wait)
#+openmcl
1000
#-openmcl
100)
;; 10000)
cause at 10000 my machine froze up.
I guess the most-positive-fixnum has to do with the 64 bit and sleep
and timeouts don't seem to like that.
I am not sure why the spawn and die kills my machine (not sure exactly
what happens, just i loose connection and can't connect back on my
ssh, the machine is headless)
Also some tests that I can see taking quite a few seconds to
complete, come back reporting 0 (or 0.0) seconds instead.
Thanks for providing this work free.
I hope my report helps in some ways.
I do not have much experience with CL and am glad to find this lib.
-Antony
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Gbbopen-developer
mailing list