Update to go1.25.0

This commit is contained in:
Vorapol Rinsatitnon
2025-08-13 21:50:03 +07:00
parent 4fdddd398d
commit c7759f4edb
2303 changed files with 161699 additions and 70952 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build (darwin || linux || windows || freebsd) && (amd64 || arm64)
//go:build (darwin || linux || windows || freebsd || openbsd) && (amd64 || arm64 || loong64)
package fuzz

View File

@@ -8,7 +8,7 @@
//
// If you update this constraint, also update internal/platform.FuzzInstrumented.
//
//go:build !((darwin || linux || windows || freebsd) && (amd64 || arm64))
//go:build !((darwin || linux || windows || freebsd || openbsd) && (amd64 || arm64 || loong64))
package fuzz

View File

@@ -23,11 +23,7 @@ func ResetCoverage() {
func SnapshotCoverage() {
cov := coverage()
for i, b := range cov {
b |= b >> 1
b |= b >> 2
b |= b >> 4
b -= b >> 1
coverageSnapshot[i] = b
coverageSnapshot[i] = pow2Table[b]
}
}
@@ -102,4 +98,18 @@ var (
// the 8-bit coverage counters reside in memory. They're known to cmd/link,
// which specially assigns their addresses for this purpose.
_counters, _ecounters [0]byte
// lookup table for faster power of two rounding
pow2Table [256]byte
)
func init() {
for i := range pow2Table {
b := byte(i)
b |= b >> 1
b |= b >> 2
b |= b >> 4
b -= b >> 1
pow2Table[i] = b
}
}

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build darwin || freebsd || linux || windows
//go:build darwin || freebsd || linux || openbsd || windows
package fuzz

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build darwin || freebsd || linux
//go:build darwin || freebsd || linux || openbsd
package fuzz

View File

@@ -4,7 +4,7 @@
// If you update this constraint, also update internal/platform.FuzzSupported.
//
//go:build !darwin && !freebsd && !linux && !windows
//go:build !darwin && !freebsd && !linux && !openbsd && !windows
package fuzz