mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: expand large stack frame error messages
Change-Id: Ib9f621e380dd9a6beace27ec5ff62780012f8274 Reviewed-on: https://go-review.googlesource.com/c/144600 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
f28191340e
commit
cc36b835e4
3 changed files with 19 additions and 6 deletions
|
|
@ -28,9 +28,17 @@ type Error struct {
|
|||
|
||||
var errors []Error
|
||||
|
||||
// largeStack is info about a function whose stack frame is too large (rare).
|
||||
type largeStack struct {
|
||||
locals int64
|
||||
args int64
|
||||
callee int64
|
||||
pos src.XPos
|
||||
}
|
||||
|
||||
var (
|
||||
largeStackFramesMu sync.Mutex // protects largeStackFrames
|
||||
largeStackFrames []src.XPos // positions of functions whose stack frames are too large (rare)
|
||||
largeStackFrames []largeStack
|
||||
)
|
||||
|
||||
func errorexit() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue