Source file src/internal/runtime/gc/scan.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  package gc
     6  
     7  import "internal/goarch"
     8  
     9  // ObjMask is a bitmap where each bit corresponds to an object in a span.
    10  //
    11  // It is sized to accomodate all size classes.
    12  type ObjMask [MaxObjsPerSpan / (goarch.PtrSize * 8)]uintptr
    13  
    14  // PtrMask is a bitmap where each bit represents a pointer-word in a single runtime page.
    15  type PtrMask [PageSize / goarch.PtrSize / (goarch.PtrSize * 8)]uintptr
    16  

View as plain text