loom
loom copied to clipboard
benchmark fail to run because of compiler optimizations
On develop branch, the program benchmarks fails to run resulting from optimizations done by gcc with O3:
-- no-op limit 1000000 -- wall 1.033 clock 2.999 => 968493.0 / sec
Assertion failed: (false), function main, file benchmarks.c, line 169.
However, clang is known to work. gcc version 8.2.0 is tested here.
What platform is this on (OS and CPU architecture)?
It doesn't have the right memory barriers in place to work right on ARM.
Also, I haven't really used this library in several years. I may get back to it eventually, but it's pretty low priority for me. The next time I work on it, I'll try to address this issue, though.
It can be reproduced on both Linux/x86_64 18.04 and macOS/x86_64 Mojave.
ping?
pong