commit | d89db31db68d09aa13a6137122cc096c1d92597b | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Wed Feb 06 10:44:54 2019 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Feb 06 20:45:12 2019 +0000 |
tree | 54caa937c063097e52860339bd3e3be036b29a9a | |
parent | 74ffeddbe6fef446129af65581b3a9094715bc22 [diff] |
sync/atomic: use strong form of atomic_compare_exchange_n In the recent change to use atomic_compare_exchange_n I thought we could use the weak form, which can spuriously fail. But that is not how it is implemented in the gc library, and it is not what the rest of the library expects. Thanks to Lynn Boger for identifying the problem. Fixes https://gcc.gnu.org/PR89199 Change-Id: I78dea34f1b92b84ec4367b4029a6253d599858fa Reviewed-on: https://go-review.googlesource.com/c/161359 Reviewed-by: Cherry Zhang <cherryyz@google.com>