Comments (3)
Hi @joelnn
Would it be possible to get more detail on the problem statement? I'm aware of the paper, but I don't understand the problem you're trying to point out. Note, the paper is talking about intersection of programming language memory models and the raciness of read-side sections in seqlock.
I would ask you re-open the issue or file another with more details.
For more information, there are generally two classes of issues:
- Optimizers (particularly on older compilers) have been observed to not play nicely with some expectations of algorithms. In particular, if non-volatile loads and stores are being used we have observed breakage or bugs with respect to dependencies on volatile (ck_pr) operations.
- Compilers are free to generate non-temporal stores or loads which will break ordering assumptions required by some algorithms.
Are you encountering a problem with ck_seqlock?
from ck.
Hi @sbahra. I was hoping to use a seqlock in the form given in the man page, ie do some arbitrary reads inside the lock, without the further help of ck functions.
Finding that change to the test code made me doubt whether I would be on solid ground doing that with a modern/correct compiler. Granted it’s not totally clear which compilers are correct, but that’s what I look to CK for.
But the issue I meant to raise is just: the test code should not be less vulnerable to compiler issues than any documented usages. So if the test code change was needed to make the tests pass on a toolchain CK (still) cares about, the man page should probably reflect it too.
from ck.
I haven't found any issues with modern compilers and arbitrary reads are permitted. You do raise a good point, I'll update the test to include an ifdef for older compilers that are not doing the right thing here.
Edit -- (when I get a chance, it's unfortunately a low priority item on my list so no idea when I'll get to it).
from ck.
Related Issues (20)
- which compiler version is okay to do the aarch64 cross compile? HOT 2
- ck_pr.h causes stringop-overread warning with GCC 11 HOT 1
- aff_iterate() fails on M1 macbooks
- custom configure script broken for cross-compilation HOT 2
- When is the next release of ConcurrencyKit? HOT 2
- How could we cross compile ck? HOT 5
- compilation: error: expected expression before 'struct' HOT 1
- Request: Add Support for Altering ABI Target When Building for riscv64 Platform HOT 1
- Compilation fails with -Werror=strict-aliasing HOT 3
- Missing man pages for newer fence types HOT 1
- MinGW64 (Git Bash) fails to parse ./configure generated directory names
- ck_ec test fails on 32-bit musl systems
- Can we get a stable 0.7.1 release? HOT 5
- When is the next stable release of ConcurrencyKit? HOT 2
- Makefile dependency errors
- Possible bug in ck_hp.c due to ck_hp_member_cache always returning NULL HOT 1
- patch to ck_sequence_write_begin & ck_sequence_write_end broke my code HOT 5
- Possible bug in `ck_rhs_t` on OOM. HOT 6
- site `http://concurrencykit.org/` is not accessible
- Question about ck_rhs_flush and memory ordering. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ck.