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