1
0
mirror of https://github.com/golang/go synced 2024-10-02 04:28:33 -06:00

runtime: remove unnecessary sync from publicationBarrier on s390x

Memory accesses on z are at least as ordered as they are on AMD64.

Change-Id: Ia515430e571ebd07e9314de05c54dc992ab76b95
Reviewed-on: https://go-review.googlesource.com/74010
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Munday <mike.munday@ibm.com>
This commit is contained in:
Bill O'Farrell 2017-10-27 14:40:59 -04:00 committed by Michael Munday
parent 03c8c56682
commit 7fff1db060

View File

@ -915,7 +915,8 @@ TEXT runtime·sigreturn(SB),NOSPLIT,$0-0
RET
TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
SYNC
// Stores are already ordered on s390x, so this is just a
// compile barrier.
RET
TEXT runtime·cmpstring(SB),NOSPLIT|NOFRAME,$0-40