Update to go1.24.0
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"internal/abi"
|
||||
"internal/cpu"
|
||||
"internal/goarch"
|
||||
"internal/runtime/sys"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -34,7 +35,7 @@ func memhash128(p unsafe.Pointer, h uintptr) uintptr {
|
||||
|
||||
//go:nosplit
|
||||
func memhash_varlen(p unsafe.Pointer, h uintptr) uintptr {
|
||||
ptr := getclosureptr()
|
||||
ptr := sys.GetClosurePtr()
|
||||
size := *(*uintptr)(unsafe.Pointer(ptr + unsafe.Sizeof(h)))
|
||||
return memhash(p, h, size)
|
||||
}
|
||||
@@ -56,8 +57,6 @@ var useAeshash bool
|
||||
// - github.com/outcaste-io/ristretto
|
||||
// - github.com/puzpuzpuz/xsync/v2
|
||||
// - github.com/puzpuzpuz/xsync/v3
|
||||
// - github.com/segmentio/parquet-go
|
||||
// - github.com/parquet-go/parquet-go
|
||||
// - github.com/authzed/spicedb
|
||||
// - github.com/pingcap/badger
|
||||
//
|
||||
@@ -67,28 +66,8 @@ var useAeshash bool
|
||||
//go:linkname memhash
|
||||
func memhash(p unsafe.Pointer, h, s uintptr) uintptr
|
||||
|
||||
// memhash32 should be an internal detail,
|
||||
// but widely used packages access it using linkname.
|
||||
// Notable members of the hall of shame include:
|
||||
// - github.com/segmentio/parquet-go
|
||||
// - github.com/parquet-go/parquet-go
|
||||
//
|
||||
// Do not remove or change the type signature.
|
||||
// See go.dev/issue/67401.
|
||||
//
|
||||
//go:linkname memhash32
|
||||
func memhash32(p unsafe.Pointer, h uintptr) uintptr
|
||||
|
||||
// memhash64 should be an internal detail,
|
||||
// but widely used packages access it using linkname.
|
||||
// Notable members of the hall of shame include:
|
||||
// - github.com/segmentio/parquet-go
|
||||
// - github.com/parquet-go/parquet-go
|
||||
//
|
||||
// Do not remove or change the type signature.
|
||||
// See go.dev/issue/67401.
|
||||
//
|
||||
//go:linkname memhash64
|
||||
func memhash64(p unsafe.Pointer, h uintptr) uintptr
|
||||
|
||||
// strhash should be an internal detail,
|
||||
@@ -97,7 +76,6 @@ func memhash64(p unsafe.Pointer, h uintptr) uintptr
|
||||
// - github.com/aristanetworks/goarista
|
||||
// - github.com/bytedance/sonic
|
||||
// - github.com/bytedance/go-tagexpr/v2
|
||||
// - github.com/cloudwego/frugal
|
||||
// - github.com/cloudwego/dynamicgo
|
||||
// - github.com/v2fly/v2ray-core/v5
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user