diff options
| author | Dhananjay Nakrani <dhananjaynakrani@gmail.com> | 2016-10-17 14:17:46 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2016-10-18 20:11:01 +0000 |
| commit | 8b3194ac8fd8436bf4bfd252de58ab81154f334d (patch) | |
| tree | 510422b61fc4de3013e0f4a1a653711f150966f5 /src/net/http | |
| parent | 2b687a7df854f3c88b266b6cec59a207a45c2353 (diff) | |
| download | go-8b3194ac8fd8436bf4bfd252de58ab81154f334d.tar.xz | |
cmd/compile: fix code duplication in race-instrumentation
instrumentnode() accidentally copies parent's already-instrumented nodes
into child's Ninit block. This generates repeated code in race-instrumentation.
This case surfaces only when it duplicates inline-labels, because of
compile time error. In other cases, it silently generates incorrect
instrumented code. This change prevents it from doing so.
Fixes #17449.
Change-Id: Icddf2198990442166307e176b7e20aa0cf6c171c
Reviewed-on: https://go-review.googlesource.com/31317
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/http')
0 files changed, 0 insertions, 0 deletions
