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

Relax atomic operations of update_gauge and increment_counter #184

Merged
merged 1 commit into from
Mar 16, 2021

Commits on Mar 15, 2021

  1. Relax atomic operations of update_gauge and increment_counter

    This commit relaxes the atomics of the aforementioned functions, removing the
    sync pressure on machines with large numbers of CPUs or ARM. As the reads of
    counters and gauges were formerly relaxed I believe this maintains the semantic
    intentions, though it is now possible for a writer to immediately read and
    "lose" the write temporarily if the read is done from a different CPU, in the
    case of the counter.
    
    Signed-off-by: Brian L. Troutwine <brian@troutwine.us>
    blt committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    dfbbd49 View commit details
    Browse the repository at this point in the history