blob: 0e17a1598f5613263558739459a90c175d9fddc0 [file] [log] [blame]
// Copyright 2023 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 runtime
// taggedPointer is a pointer with a numeric tag.
// The size of the numeric tag is GOARCH-dependent,
// currently at least 10 bits.
// This should only be used with pointers allocated outside the Go heap.
type taggedPointer uint64
// minTagBits is the minimum number of tag bits that we expect.
const minTagBits = 10