]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: add memory barriers to Load/StoreInt32 on darwin/arm
authorElias Naur <elias.naur@gmail.com>
Sun, 1 Oct 2017 10:51:54 +0000 (12:51 +0200)
committerElias Naur <elias.naur@gmail.com>
Mon, 2 Oct 2017 09:57:23 +0000 (09:57 +0000)
commit9735fcfce78360eeaaa62fb44bd597f7b85ff429
tree778f8393fe9c39a4c34aff9f6c1d8755480a44e8
parentf2af0c178099c0d785efe3b6f5f2282277f9ee9c
sync/atomic: add memory barriers to Load/StoreInt32 on darwin/arm

After switching to an iPhone 5 for the darwin/arm builds,
TestStoreLoadRelAcq32 started to timeout on every builder run.
Adding the same memory barriers as armLoadUint64 and armStoreUint64
makes the test complete successfully.

Fixes sync/atomic tests on the darwin/arm builder.

Change-Id: Id73de31679304e259bdbd7f2f94383ae7fd70ee4
Reviewed-on: https://go-review.googlesource.com/67390
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/sync/atomic/asm_darwin_arm.s