diff options
| author | Than McIntosh <thanm@google.com> | 2022-10-18 11:28:52 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-10-18 18:14:15 +0000 |
| commit | 4fb35d6cee036fa2583512940de91a03f7f029e9 (patch) | |
| tree | 82d0353c903e24e7a46806577911e5a80af52a14 /src/cmd/objdump | |
| parent | 7ae652b7c0cddb8f6e04bfa6f5805baac823dd64 (diff) | |
| download | go-4fb35d6cee036fa2583512940de91a03f7f029e9.tar.xz | |
cmd/compile: special case coverage vars in pkg init order
When computing package initialization order, special case the counter
variables inserted by "cmd/cover" for coverage instrumentation, since
their presence can perturb the order in which variables are
initialized in ways that are user-visible and incorrect with respect
to the original (uninstrumented) program.
Fixes #56293.
Change-Id: Ieec9239ded4f8e2503ff9bbe0fe171afb771b335
Reviewed-on: https://go-review.googlesource.com/c/go/+/443715
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/objdump')
0 files changed, 0 insertions, 0 deletions
