summaryrefslogtreecommitdiffhomepage
path: root/tools/checkescape/test2/test2.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-08-26 14:40:30 -0700
committerAndrei Vagin <avagin@gmail.com>2020-09-09 17:53:10 -0700
commitf63cddc6b4826007ca2a755d30b2df65ea21c518 (patch)
treec2f65b4b73089c32f0374062cb974dd4672ad811 /tools/checkescape/test2/test2.go
parentd872b342b2c2291420a9570edcf340040754bb44 (diff)
Support stdlib analyzers with nogo.
This immediately revealed an escape analysis violation (!), where the sync.Map was being used in a context that escapes were not allowed. This is a relatively minor fix and is included. PiperOrigin-RevId: 328611237
Diffstat (limited to 'tools/checkescape/test2/test2.go')
-rw-r--r--tools/checkescape/test2/test2.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/checkescape/test2/test2.go b/tools/checkescape/test2/test2.go
index 7fce3e3be..2d5865f47 100644
--- a/tools/checkescape/test2/test2.go
+++ b/tools/checkescape/test2/test2.go
@@ -81,12 +81,6 @@ func dynamicCrossPkg(f func()) {
test1.Dynamic(f)
}
-// +mustescape:unknown
-//go:noinline
-func unknownCrossPkg() {
- test1.Unknown()
-}
-
// +mustescape:stack
//go:noinline
func splitCrosssPkt() {