]> Cypherpunks repositories - gostls13.git/commit
go/types: avoid race condition with dot-imported objects
authorRobert Griesemer <gri@golang.org>
Tue, 25 Jun 2019 22:46:23 +0000 (15:46 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 26 Jun 2019 03:59:57 +0000 (03:59 +0000)
commitadf888376deb749bc95a2717989eb0f2db001f8d
tree4820316c80546bb1094b7368017e101a6558095e
parent6d1aaf143c879ae7acbd20a1e60bf74681bf6055
go/types: avoid race condition with dot-imported objects

It would be nice to have a test, but it requires running
this under the race detector which is a bit complicated
to set up; yet the fix is trivial. Verified manually that
it doesn't trip the race detector.

Fixes #32154.

Change-Id: I20bd746a07945c802f0476a1d8b1dfd83c87dae8
Reviewed-on: https://go-review.googlesource.com/c/go/+/183849
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/types/resolver.go