]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,cmd/link: hooks for identifying coverage counters
authorThan McIntosh <thanm@google.com>
Tue, 19 Apr 2022 23:41:40 +0000 (19:41 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 27 Sep 2022 10:29:51 +0000 (10:29 +0000)
commit072c7d4969862c84430cc2daef20a8f7f3ba78a2
treef0cb83f688a4a5bc18168f1e1e2a72f37999a783
parent361f5eba9f9e9902226e7edac76646253b7025e4
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>
src/cmd/compile/internal/gc/obj.go
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/ssa/writebarrier.go
src/cmd/internal/objabi/symkind.go
src/cmd/internal/objabi/symkind_string.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/sym/symkind.go
src/cmd/link/internal/sym/symkind_string.go
src/runtime/symtab.go