]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't modify nodfp in AllocFrame
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 31 Mar 2017 23:52:50 +0000 (16:52 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 3 Apr 2017 01:22:58 +0000 (01:22 +0000)
commit37515135626ba0bb81c3f2befc3393f862290826
treed121286ab62bd2f3942384c99b15ebb841878f57
parenta1cedf08428bdb91916bb5317c8413212308048c
cmd/compile: don't modify nodfp in AllocFrame

nodfp is a global, so modifying it is unsafe in a concurrent backend.
It is also not necessary, since the Used marks
are only relevant for nodes in fn.Dcl.
For good measure, mark nodfp as always used.

Passes toolstash-check.

Updates #15756

Change-Id: I5320459f5eced2898615a17b395a10c1064bcaf5
Reviewed-on: https://go-review.googlesource.com/39200
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/universe.go