Update to go1.25.0
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user