Update to go1.24.0

This commit is contained in:
Vorapol Rinsatitnon
2025-02-14 12:42:07 +07:00
parent 25e497e367
commit bf266cebe6
3169 changed files with 236789 additions and 60275 deletions

View File

@@ -27,3 +27,12 @@ func z() {
z := t{&i}.f // ERROR "t{...}.f escapes to heap"
z()
}
// Should match cmd/compile/internal/ir/cfg.go:MaxStackVarSize.
const maxStack = 128 * 1024
func w(i int) byte {
var x [maxStack]byte
var y [maxStack + 1]byte // ERROR "moved to heap: y"
return x[i] + y[i]
}