mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Change-Id: I290812905b6b5c52f289f7f8524f93aef19e6efe Reviewed-on: https://go-review.googlesource.com/c/go/+/706775 Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Sean Liao <sean@liao.dev>
15 lines
545 B
Go
15 lines
545 B
Go
// 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.
|
|
|
|
package gc
|
|
|
|
import "internal/goarch"
|
|
|
|
// ObjMask is a bitmap where each bit corresponds to an object in a span.
|
|
//
|
|
// It is sized to accommodate all size classes.
|
|
type ObjMask [MaxObjsPerSpan / (goarch.PtrSize * 8)]uintptr
|
|
|
|
// PtrMask is a bitmap where each bit represents a pointer-word in a single runtime page.
|
|
type PtrMask [PageSize / goarch.PtrSize / (goarch.PtrSize * 8)]uintptr
|