X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fthreads.impure.lisp;h=d3cc1623074e2476ae317f9d30601d35a2112a93;hb=aede5ac0bbafc2ec5ef5044a51e47a9e10963d54;hp=4c452580345a85e5292e646056fb8b8b650dc448;hpb=9aa5b376fc754246caac367407d158a11a5dc355;p=sbcl.git diff --git a/tests/threads.impure.lisp b/tests/threads.impure.lisp index 4c45258..d3cc162 100644 --- a/tests/threads.impure.lisp +++ b/tests/threads.impure.lisp @@ -488,31 +488,16 @@ (with-test (:name (:thread-start :dynamic-values-and-gc)) (let ((gc-thread (sb-thread:make-thread (lambda () - (loop (sleep (random 0.01)) + (loop (sleep (random 0.2)) (sb-ext:gc :full t)))))) (wait-for-threads - (loop for i below 30000000 + (loop for i below 3000 when (zerop (mod i 30)) - do (princ ".") (force-output) + do (princ ".") collect - (let ((*a* (lambda ())) - (*b* (lambda ())) - (*c* (lambda ())) - (*d* (lambda ())) - (*e* (lambda ())) - (*f* (lambda ())) - (*g* (lambda ())) - (*h* (lambda ()))) - (declare (special *a* *b* *c* *d* *e* *f* *g* *h*)) - (sb-thread:make-thread (lambda () - (functionp *a*) - (functionp *b*) - (functionp *c*) - (functionp *d*) - (functionp *e*) - (functionp *f*) - (functionp *g*) - (functionp *h*)))))) + (let ((*x* (lambda ()))) + (declare (special *x*)) + (sb-thread:make-thread (lambda () (functionp *x*)))))) (sb-thread:terminate-thread gc-thread) (terpri)))