1.0.7.6: additional test case that fails under SB-LUTEX
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 1 Jul 2007 15:03:34 +0000 (15:03 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 1 Jul 2007 15:03:34 +0000 (15:03 +0000)
 Buggrit, millenium hand and shrimp!

NEWS
tests/threads.pure.lisp
version.lisp-expr

diff --git a/NEWS b/NEWS
index afa7fe6..9897eda 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ changes in sbcl-1.0.8 relative to sbcl-1.0.7:
     and x86-64.
   * performance bug fix: GETHASH and (SETF GETHASH) are once again
     non-consing.
+  * bug fix: threads waiting on GET-FOREGROUND can be interrupted.
+    (reported by Kristoffer Kvello)
   * bug fix: backtrace construction is now more careful when making
     lisp-objects from pointers on the stack, to avoid creating bogus
     objects that can be seen by the GC.
index f078b5b..6b58125 100644 (file)
     (condition-notify queue)
     (sleep 1)
     (assert (not (thread-alive-p thread)))))
+
+;;; GET-MUTEX should not be interruptible under WITHOUT-INTERRUPTS
+
+#+sb-thread
+(with-test (:name without-interrupts+get-mutex
+            :fails-on :sb-lutex)
+  (let* ((lock (make-mutex))
+         (foo (get-mutex lock))
+         (thread (make-thread (lambda ()
+                                (sb-sys:without-interrupts
+                                  (with-mutex (lock)
+                                    :fini))))))
+    (sleep 1)
+    (assert (thread-alive-p thread))
+    (terminate-thread thread)
+    (sleep 1)
+    (assert (thread-alive-p thread))
+    (release-mutex lock)
+    (sleep 1)
+    (assert (not (thread-alive-p thread)))
+    (assert (eq :fini (join-thread thread)))))
index 8d02b1f..d317cdc 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.7.5"
+"1.0.7.6"