Chez Scheme: fix a test for weak memory ordering

This commit is contained in:
Matthew Flatt 2020-12-06 06:42:21 -07:00
parent 5cedca2183
commit a2a456cd2d

View File

@ -1438,7 +1438,9 @@
(if (odd? i)
(let loop () (unless (ftype-lock! A (y) a) (printf "waiting\n") (loop)))
(ftype-spin-lock! A (y) a))
(memory-order-acquire)
(ftype-set! A (x) a ((if (odd? n) + -) (ftype-ref A (x) a) 1.0))
(memory-order-release)
(ftype-unlock! A (y) a))))))
(let loop ()
(if (equal? (length ls) n)