-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ck_sequence test vs docs #110
Comments
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:
Are you encountering a problem with ck_seqlock? |
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. |
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). |
The test here shows different usage than the man page here.
Specifically, a56cac3 indicates a problem with the usage given in the man page.
I don't fully understand the complexity myself, but maybe this paper will be helpful while reviewing this.
The text was updated successfully, but these errors were encountered: