• Russ Cox's avatar
    runtime: make cas64 like cas32 and casp · fb63e4fe
    Russ Cox authored
    The current cas64 definition hard-codes the x86 behavior
    of updating *old with the new value when the cas fails.
    This is inconsistent with cas32 and casp.
    Make it consistent.
    
    This means that the cas64 uses will be epsilon less efficient
    than they might be, because they have to do an unnecessary
    memory load on x86. But so be it. Code clarity and consistency
    is more important.
    
    R=golang-dev, bradfitz
    CC=golang-dev
    https://golang.org/cl/10909045
    fb63e4fe
runtime.c 8.2 KB