aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/base
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-07-06 11:15:27 -0400
committerAustin Clements <austin@google.com>2023-08-22 19:18:32 +0000
commit83e0704c50c4269d90ec654b6590ae4db554f4eb (patch)
treee7f16dabc37f20cfa9979f1c48dc297801e143e8 /src/cmd/compile/internal/base
parent3e73802c4a40a665d505e0c906609ce771cfd219 (diff)
downloadgo-83e0704c50c4269d90ec654b6590ae4db554f4eb.tar.xz
cmd/compile: add all runtime package dependencies to NoInstrumentPkgs
Currently, this list includes *almost* all runtime packages, but not quite all. We leave out internal/bytealg for reasons explained in the code. Compiling with or without race instrumentation has no effect on the other packages added to the list here, so this is a no-op change today, but makes this more robust. Change-Id: Iaec585b2efbc72983d8cb3929394524c42dd664d Reviewed-on: https://go-review.googlesource.com/c/go/+/521701 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/base')
-rw-r--r--src/cmd/compile/internal/base/base.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/base/base.go b/src/cmd/compile/internal/base/base.go
index 458481fa4e..841241efb1 100644
--- a/src/cmd/compile/internal/base/base.go
+++ b/src/cmd/compile/internal/base/base.go
@@ -245,6 +245,16 @@ var NoInstrumentPkgs = []string{
"runtime/asan",
"internal/cpu",
"internal/abi",
+ // We omit bytealg even though it's imported by runtime because it also
+ // backs a lot of package bytes. Currently we don't have a way to omit race
+ // instrumentation when used from the runtime while keeping race
+ // instrumentation when used from user code. Somehow this doesn't seem to
+ // cause problems, though we may be skating on thin ice. See #61204.
+ //"internal/bytealg",
+ "internal/coverage/rtcov",
+ "internal/godebugs",
+ "internal/goexperiment",
+ "internal/goos",
}
// Don't insert racefuncenter/racefuncexit into the following packages.