1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:11:22 -06:00
go/src/cmd
David Chase c3b3e7b4ef cmd/compile: insert instrumentation more carefully in racewalk
Be more careful about inserting instrumentation in racewalk.
If the node being instrumented is an OAS, and it has a non-
empty Ninit, then append instrumentation to the Ninit list
rather than letting it be inserted before the OAS (and the
compilation of its init list).  This deals with the case that
the Ninit list defines a variable used in the RHS of the OAS.

Fixes #15091.

Change-Id: Iac91696d9104d07f0bf1bd3499bbf56b2e1ef073
Reviewed-on: https://go-review.googlesource.com/21771
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: David Chase <drchase@google.com>
2016-04-08 21:06:39 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api all: delete dead non-test code 2016-03-25 06:28:13 +00:00
asm cmd: extract obj's Biobuf code into new bio package 2016-04-07 06:09:54 +00:00
cgo cmd/cgo: increase s390x int type size to 8 bytes 2016-04-08 20:31:58 +00:00
compile cmd/compile: insert instrumentation more carefully in racewalk 2016-04-08 21:06:39 +00:00
cover all: single space after period. 2016-03-02 00:13:47 +00:00
dist cmd: extract obj's Biobuf code into new bio package 2016-04-07 06:09:54 +00:00
doc all: delete dead non-test code 2016-03-25 06:28:13 +00:00
fix all: single space after period. 2016-03-02 00:13:47 +00:00
go cmd/go: fix failing tests since vet was moved from x/tools 2016-04-08 05:40:53 +00:00
gofmt cmd/gofmt: make gofmt -s simplify slices in presence of dot-imports 2016-04-06 18:19:33 +00:00
internal cmd: replace bio.Buf with bio.Reader and bio.Writer 2016-04-08 14:37:37 +00:00
link cmd/link: add s390x to link tool main function 2016-04-08 16:00:41 +00:00
nm all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
objdump cmd/objdump: skip TestDisasm* for mips64{,le} 2015-09-10 18:27:09 +00:00
pack cmd/pack,vet: use go doc instead of godoc in doc 2016-03-17 21:06:40 +00:00
pprof cmd/pprof: use DWARF info to lookup unknown PC addresses 2016-03-31 04:05:06 +00:00
trace runtime: emit file:line info into traces 2016-04-08 20:52:30 +00:00
vet icmd/vet: improved checking for variadic Println-like functions 2016-04-06 18:11:36 +00:00
yacc all: delete dead non-test code 2016-03-25 06:28:13 +00:00