mirror of
https://github.com/golang/go
synced 2024-11-21 22:04:39 -07:00
cmd/fix: add runtime renamings
R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/5685043
This commit is contained in:
parent
fa9c44d831
commit
3c831f6395
@ -56,4 +56,16 @@ var go1renameReplace = []rename{
|
|||||||
Old: "os.Exec",
|
Old: "os.Exec",
|
||||||
New: "syscall.Exec",
|
New: "syscall.Exec",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
OldImport: "runtime",
|
||||||
|
NewImport: "",
|
||||||
|
Old: "runtime.Cgocalls",
|
||||||
|
New: "runtime.NumCgoCall",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
OldImport: "runtime",
|
||||||
|
NewImport: "",
|
||||||
|
Old: "runtime.Goroutines",
|
||||||
|
New: "runtime.NumGoroutine",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@ import (
|
|||||||
"crypto/des"
|
"crypto/des"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -29,6 +30,8 @@ var (
|
|||||||
_ = url.ParseWithReference
|
_ = url.ParseWithReference
|
||||||
_ = url.ParseRequest
|
_ = url.ParseRequest
|
||||||
_ = os.Exec
|
_ = os.Exec
|
||||||
|
_ = runtime.Cgocalls
|
||||||
|
_ = runtime.Goroutines
|
||||||
)
|
)
|
||||||
`,
|
`,
|
||||||
Out: `package main
|
Out: `package main
|
||||||
@ -37,6 +40,7 @@ import (
|
|||||||
"crypto/aes"
|
"crypto/aes"
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -49,6 +53,8 @@ var (
|
|||||||
_ = url.Parse
|
_ = url.Parse
|
||||||
_ = url.ParseRequestURI
|
_ = url.ParseRequestURI
|
||||||
_ = syscall.Exec
|
_ = syscall.Exec
|
||||||
|
_ = runtime.NumCgoCall
|
||||||
|
_ = runtime.NumGoroutine
|
||||||
)
|
)
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user