]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: conditional on -race, disable inline of go:norace
authorDavid Chase <drchase@google.com>
Fri, 15 Jun 2018 19:20:57 +0000 (15:20 -0400)
committerDavid Chase <drchase@google.com>
Tue, 19 Jun 2018 20:59:10 +0000 (20:59 +0000)
commitc6e455bb11d6da5c7a6334e0a7ea174586a83379
treed07c50612893f99abb075e3e87f7e8f8325fc3ba
parent707ca18d97ccc769d78f9d16bdf94b992858977d
cmd/compile: conditional on -race, disable inline of go:norace

Adds the appropriate check to inl.go.
Includes tests of both -race+go:norace and plain go:norace.

Fixes #24651.

Change-Id: Id806342430c20baf4679a985d12eea3b677092e0
Reviewed-on: https://go-review.googlesource.com/119195
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/inl.go
test/fixedbugs/issue24651a.go [new file with mode: 0644]
test/fixedbugs/issue24651b.go [new file with mode: 0644]