sheriff
sheriff copied to clipboard
Sheriff consists of two tools: Sheriff-Detect, a false-sharing detector, and Sheriff-Protect, a false-sharing eliminator that you can link with your code to eliminate false sharing.
When compile with gcc-9 on Ubuntu20.04, the `atomic` struct is ambiguous with which in `bits/atomic_base.h` ``` include/xmemory_opt.h:470:5: error: reference to ‘atomic’ is ambiguous with `bits/atomic_base.h` 470 | atomic::atomic_set(&_doChecking, 0); |...
## Reproducible error: Switching the order of `_magic` with `_size` in `include/objectheader.h` causes a failure when running `examples/falsesharing`: ## Current order: Starting threads. theItem is at 0x8049e34 Done. Sheriff-Detect: false...