Skip to content
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

core: Fix undefined behaviour in C11 atomics #11528

Merged
merged 1 commit into from May 15, 2019

Commits on May 15, 2019

  1. core: Fix undefined behaviour in C11 atomics

    Casting pointers to volatile memory to pointers to regular memory is permitted,
    but using those pointers to access the memory results in undefined behavior.
    This commit changes the casts to no longer drop the volatile qualifier.
    
    References: https://en.cppreference.com/w/c/language/volatile
    maribu committed May 15, 2019
    Copy the full SHA
    7749e62 View commit details
    Browse the repository at this point in the history