X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fthread.lisp;h=54092dedee2cebadc2ba5d53d8818e06c1c5b13b;hb=496071a75429677a2c064e4995c379d3ba6ec458;hp=6e6ebecd26041488d5f5170fba61f18ca45bc466;hpb=23a229276c2447a658b7a30217ec774067c27d5e;p=sbcl.git diff --git a/src/code/thread.lisp b/src/code/thread.lisp index 6e6ebec..54092de 100644 --- a/src/code/thread.lisp +++ b/src/code/thread.lisp @@ -159,6 +159,7 @@ provided the default value is used for the mutex." (declare (function function)) (flet ((%call-with-system-mutex () (dx-let (got-it) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (unwind-protect (when (setf got-it (get-mutex mutex)) (funcall function)) @@ -180,6 +181,7 @@ provided the default value is used for the mutex." (declare (function function)) (without-interrupts (dx-let (got-it) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (unwind-protect (when (setf got-it (get-spinlock spinlock)) (funcall function)) @@ -192,6 +194,7 @@ provided the default value is used for the mutex." (flet ((%call-with-system-spinlock () (dx-let ((inner-lock-p (eq *current-thread* (spinlock-value spinlock))) (got-it nil)) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (unwind-protect (when (or inner-lock-p (setf got-it (get-spinlock spinlock))) (funcall function)) @@ -209,6 +212,7 @@ provided the default value is used for the mutex." (defun call-with-spinlock (function spinlock) (declare (function function)) (dx-let ((got-it nil)) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (without-interrupts (unwind-protect (when (setf got-it (allow-with-interrupts @@ -220,6 +224,7 @@ provided the default value is used for the mutex." (defun call-with-mutex (function mutex value waitp) (declare (function function)) (dx-let ((got-it nil)) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (without-interrupts (unwind-protect (when (setq got-it (allow-with-interrupts @@ -232,6 +237,7 @@ provided the default value is used for the mutex." (declare (function function)) (dx-let ((inner-lock-p (eq (mutex-%owner mutex) *current-thread*)) (got-it nil)) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (without-interrupts (unwind-protect (when (or inner-lock-p (setf got-it (allow-with-interrupts @@ -246,6 +252,7 @@ provided the default value is used for the mutex." (declare (function function)) (dx-let ((inner-lock-p (eq (spinlock-value spinlock) *current-thread*)) (got-it nil)) + #-sb-xc-host (declare (optimize sb!c::stack-allocate-value-cells)) (without-interrupts (unwind-protect (when (or inner-lock-p (setf got-it (allow-with-interrupts