cmd/compile: don't depend on statictmp_ variables being read only #21940
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
In cmd/compile/internal/gc/racewalk.go:
This isn't really true. If you do:
Then the
&T
allocates a variable that starts withstatictmp_
, but it is writeable.I think it would be hard to have a race on these variables, as they are only accessed directly during init functions. But maybe we should update the comment.
@dvyukov
The text was updated successfully, but these errors were encountered: