aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/base/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/base/base.go')
-rw-r--r--src/cmd/compile/internal/base/base.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/cmd/compile/internal/base/base.go b/src/cmd/compile/internal/base/base.go
index 841241efb1..ee3772c5ca 100644
--- a/src/cmd/compile/internal/base/base.go
+++ b/src/cmd/compile/internal/base/base.go
@@ -219,44 +219,3 @@ func AdjustStartingHeap(requestedHeapGoal uint64) {
forEachGC(adjustFunc)
}
-
-func Compiling(pkgs []string) bool {
- if Ctxt.Pkgpath != "" {
- for _, p := range pkgs {
- if Ctxt.Pkgpath == p {
- return true
- }
- }
- }
-
- return false
-}
-
-// Do not instrument the following packages at all,
-// at best instrumentation would cause infinite recursion.
-var NoInstrumentPkgs = []string{
- "runtime/internal/atomic",
- "runtime/internal/math",
- "runtime/internal/sys",
- "runtime/internal/syscall",
- "runtime",
- "runtime/race",
- "runtime/msan",
- "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.
-// Memory accesses in the packages are either uninteresting or will cause false positives.
-var NoRacePkgs = []string{"sync", "sync/atomic"}