mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Disable lockfree-list.impure.
There's no way to make it generally work, it depends on the number of cores and the current CPU load.
This commit is contained in:
parent
ffe52280ee
commit
f74a10a3d6
|
|
@ -152,12 +152,13 @@
|
|||
et-locked et-lockfree ratio))
|
||||
(setq best (max ratio best))))))))
|
||||
|
||||
(test-util:with-test (:name :lockfree-list-performance)
|
||||
(test-util:with-test (:name :lockfree-list-performance
|
||||
:skipped-on :sbcl)
|
||||
(let ((cpus
|
||||
(max 1
|
||||
#-win32 (sb-alien:alien-funcall
|
||||
(sb-alien:extern-alien "sysconf"
|
||||
(function sb-alien:long sb-alien:int))
|
||||
sb-unix::sc-nprocessors-onln)
|
||||
#+win32 (sb-alien:extern-alien "os_number_of_processors" sb-alien:int))))
|
||||
(max 1
|
||||
#-win32 (sb-alien:alien-funcall
|
||||
(sb-alien:extern-alien "sysconf"
|
||||
(function sb-alien:long sb-alien:int))
|
||||
sb-unix::sc-nprocessors-onln)
|
||||
#+win32 (sb-alien:extern-alien "os_number_of_processors" sb-alien:int))))
|
||||
(assert (> (primitive-benchmark) (min 2 (log cpus 2))))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue