blob: 2c7aade28f19dfec299e3f292b429f343db50a06 [file] [log] [blame]
// Copyright 2017 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 gocore
import (
// A Root is an area of memory that might have pointers into the Go heap.
type Root struct {
Name string
Addr core.Address
Type *Type // always non-nil
// Frame, if non-nil, points to the frame in which this root lives.
// Roots with non-nil Frame fields refer to local variables on a stack.
// A stack root might be a large type, with some of its fields live and
// others dead. Consult Frame.Live to find out which pointers in a stack
// root are live.
Frame *Frame