projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More robust FILTER-LVAR through CASTs
[sbcl.git]
/
tests
/
compare-and-swap.impure.lisp
diff --git
a/tests/compare-and-swap.impure.lisp
b/tests/compare-and-swap.impure.lisp
index
1bbecf9
..
b368f8c
100644
(file)
--- a/
tests/compare-and-swap.impure.lisp
+++ b/
tests/compare-and-swap.impure.lisp
@@
-120,6
+120,10
@@
(defstruct box
(word 0 :type sb-vm:word))
(defstruct box
(word 0 :type sb-vm:word))
+;; Have the following tests check that CAS access to the superclass
+;; works in the presence of a subclass sharing the conc-name.
+(defstruct (subbox (:include box) (:conc-name "BOX-")))
+
(defun inc-box (box n)
(declare (fixnum n) (box box))
(loop repeat n
(defun inc-box (box n)
(declare (fixnum n) (box box))
(loop repeat n
@@
-436,7
+440,7
@@
(dotimes (i n)
(push i y))
(mapc #'sb-thread:join-thread
(dotimes (i n)
(push i y))
(mapc #'sb-thread:join-thread
- (loop repeat 1000
+ (loop repeat (ecase sb-vm:n-word-bits (32 100) (64 1000))
collect (sb-thread:make-thread
(lambda ()
(loop for z = (atomic-pop y)
collect (sb-thread:make-thread
(lambda ()
(loop for z = (atomic-pop y)