]> Cypherpunks repositories - gostls13.git/commit
runtime: call atomic.Storeuintptr in noteclear on AIX
authorClément Chigot <clement.chigot@atos.net>
Mon, 25 Feb 2019 08:44:33 +0000 (09:44 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 14 May 2019 15:01:49 +0000 (15:01 +0000)
commit1956b28ae3cf5e75fd8ad193d3ceec183581844b
tree4fa6d3d55d1593c796697da42c4983096618841e
parent46e03c4b92231a38e089b34f6a09707676216b48
runtime: call atomic.Storeuintptr in noteclear on AIX

The memory might not be synchronized in a thread being woken up after a
semasleep. Using atomic instructions in noteclear function will force
this synchronisation.

Fixes #30189

Change-Id: If7432f29b2a1a56288231822db52f3f8d1d6dbfe
Reviewed-on: https://go-review.googlesource.com/c/go/+/163624
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/lock_sema.go