golang/go

cmd/compile: OpInlMark can get removed by SSA dead code elimination, resulting in invalid inlining trees

Open

#54,625 创建于 2022年8月23日

在 GitHub 查看
 (19 评论) (0 反应) (0 负责人)Go (19,008 fork)batch import
NeedsFixcompiler/runtimehelp wanted

仓库指标

Star
 (133,883 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

See discussion at https://github.com/golang/go/issues/46234.

The immediate issue is that https://go.dev/play/p/OikFLBmKguY?v=gotip causes the loop at https://github.com/golang/go/blob/7f632f76db65f28038b8797fbfe5e15a9f63e387/src/runtime/traceback.go#L362 to never terminate, because the inlining "tree" has cycles.

The bigger issue is that we're generating trees like this for kube-apiserver, and this is presumably the root cause of #54593.

贡献者指南