File size: 734 Bytes
f7a7bb1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | // Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !amd64
package scan
import (
"internal/runtime/gc"
"unsafe"
)
func HasFastScanSpanPacked() bool {
// N.B. ScanSpanPackedGeneric isn't actually fast enough to serve as a general-purpose implementation.
// The runtime's alternative of jumping between each object is still substantially better, even at
// relatively high object densities.
return false
}
func ScanSpanPacked(mem unsafe.Pointer, bufp *uintptr, objMarks *gc.ObjMask, sizeClass uintptr, ptrMask *gc.PtrMask) (count int32) {
return ScanSpanPackedGo(mem, bufp, objMarks, sizeClass, ptrMask)
}
|