runtime/race: should 32-bit atomic ops be flagged as racing with 64-bit atomic ops? #38881
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
RaceDetector
Milestone
(Broken out from #5045 (comment).)
My instinct is that mixing 32-bit and 64-bit
atomic
ops on the same memory must not be allowed, because their implementations may differ on some 32-bit hardware. However, the race detector does not currently flag them.For example, this program exits without error when run with
go test -race
usinggo version devel +9b189686 Tue May 5 05:13:26 2020 +0000 linux/amd64
:CC @dvyukov @aclements @cherrymui
The text was updated successfully, but these errors were encountered: