X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ffd-stream.lisp;h=1428363c0541ced5448e35dc1e16dc25677f5885;hb=ed891a4fd882d1b9fe066ab14bcf2107aea95baa;hp=f6eb756f98692ba46257bb0976731b243e234578;hpb=4898febe4d3ab2eaa83c26cd4c1ff113772100c4;p=sbcl.git diff --git a/src/code/fd-stream.lisp b/src/code/fd-stream.lisp index f6eb756..1428363 100644 --- a/src/code/fd-stream.lisp +++ b/src/code/fd-stream.lisp @@ -70,8 +70,8 @@ ;; ;; ...again, once we have smarted locks the spinlock here can become ;; a mutex. - `(sb!thread::call-with-system-spinlock (lambda () ,@body) - *available-buffers-spinlock*)) + `(sb!thread::with-system-spinlock (*available-buffers-spinlock*) + ,@body)) (defconstant +bytes-per-buffer+ (* 4 1024) #!+sb-doc @@ -847,7 +847,8 @@ (let ((fd (fd-stream-fd stream)) (errno 0) (count 0)) - (declare (dynamic-extent fd errno count)) + (declare (optimize sb!c::stack-allocate-value-cells) + (dynamic-extent fd errno count)) (tagbody ;; Check for blocking input before touching the stream, as if ;; we happen to wait we are liable to be interrupted, and the