diff options
| author | Than McIntosh <thanm@google.com> | 2022-04-19 19:41:40 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-09-27 10:29:51 +0000 |
| commit | 072c7d4969862c84430cc2daef20a8f7f3ba78a2 (patch) | |
| tree | f0cb83f688a4a5bc18168f1e1e2a72f37999a783 /src/runtime/symtab.go | |
| parent | 361f5eba9f9e9902226e7edac76646253b7025e4 (diff) | |
| download | go-072c7d4969862c84430cc2daef20a8f7f3ba78a2.tar.xz | |
cmd/compile,cmd/link: hooks for identifying coverage counters
Add a new "coverage counter" classification for variables to be used
for storing code coverage counter values (somewhat in the same way
that we identify fuzzer counters). Tagging such variables allows us to
aggregate them in the linker, and to treat updates specially.
Updates #51430.
Change-Id: Ib49fb05736ffece98bcc2f7a7c37e991b7f67bbb
Reviewed-on: https://go-review.googlesource.com/c/go/+/401235
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/symtab.go')
| -rw-r--r-- | src/runtime/symtab.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 79ca5cfc44..2da9a59b7e 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -427,6 +427,7 @@ type moduledata struct { data, edata uintptr bss, ebss uintptr noptrbss, enoptrbss uintptr + covctrs, ecovctrs uintptr end, gcdata, gcbss uintptr types, etypes uintptr rodata uintptr |
