]> Cypherpunks repositories - gostls13.git/commit
runtime, sync/atomic: add memory barriers in arm cas routines
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 19:55:49 +0000 (15:55 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 20:11:11 +0000 (20:11 +0000)
commit4bd8040d47fce4445ce73278b8528c6784e3ef25
tree8b3c53ada1d2024d4f16c13e92397ee7f6b63acc
parent87fd98d22040d71e5c87e83d194666a96e4f9fdb
runtime, sync/atomic: add memory barriers in arm cas routines

This only triggers on ARMv7+.
If there are important SMP ARMv6 machines we can reconsider.

Makes TestLFStress tests pass and sync/atomic tests not time out
on Apple iPad Mini 3.

Fixes #7977.
Fixes #10189.

Change-Id: Ie424dea3765176a377d39746be9aa8265d11bec4
Reviewed-on: https://go-review.googlesource.com/12950
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/asm_arm.s
src/sync/atomic/asm_arm.s