]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: replace MFENCE with LOCK XADD
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 19 Sep 2011 18:09:00 +0000 (11:09 -0700)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 19 Sep 2011 18:09:00 +0000 (11:09 -0700)
commitab596cae9eac88db46326a7b01c99975da8729b6
tree4c97c9fb2bdaaa267c097cd5cdc892da987edbf1
parent6f18233373454eae26386f0ca11cefe41106e7a0
sync/atomic: replace MFENCE with LOCK XADD
MFENCE was introduced only on the Pentium4 (SSE2),
while XADD was introduced on the 486.
Fixes #2268.

R=golang-dev, rsc
CC=fshahriar, golang-dev
https://golang.org/cl/5056045
src/pkg/sync/atomic/asm_386.s