Update to go1.24.3
This commit is contained in:
@@ -30,6 +30,8 @@ func main() {
|
||||
// should not be adjusted when the stack is copied.
|
||||
recurse(100, p, v)
|
||||
}
|
||||
|
||||
//go:noinline
|
||||
func recurse(n int, p *S, v uintptr) {
|
||||
if n > 0 {
|
||||
recurse(n-1, p, v)
|
||||
|
||||
@@ -11,14 +11,14 @@ package p
|
||||
|
||||
func f() { // ERROR "can inline f"
|
||||
var i interface{ m() } = T(0) // ERROR "T\(0\) does not escape"
|
||||
i.m() // ERROR "devirtualizing i.m" "inlining call to T.m"
|
||||
i.m() // ERROR "devirtualizing i.m" "inlining call to T.m" "inlining call to f" "T\(0\) does not escape"
|
||||
}
|
||||
|
||||
type T int
|
||||
|
||||
func (T) m() { // ERROR "can inline T.m"
|
||||
if never {
|
||||
f() // ERROR "inlining call to f" "devirtualizing i.m" "T\(0\) does not escape"
|
||||
f() // ERROR "inlining call to f" "devirtualizing i.m" "T\(0\) does not escape" "inlining call to T.m"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
package main
|
||||
|
||||
func run() { // ERROR "cannot inline run: recursive"
|
||||
//go:noinline
|
||||
func run() { // ERROR "cannot inline run: marked go:noinline"
|
||||
f := func() { // ERROR "can inline run.func1 with cost .* as:.*" "func literal does not escape"
|
||||
g() // ERROR "inlining call to g"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user