Skip to content

cmd/link,runtime: unused fields in inlinedCall #54849

@prattmic

Description

@prattmic

runtime.inlinedCall fields parent (parentPc is used instead), file (pcfile in the parent is used), and line (pcln in the parent is used) seem to be completely unused. They are a reflection of fields in goobj.InlTreeNode, which are used within the toolchain, but the runtime itself doesn't need them.

If I did the math right, cmd/go contains 431KB of inlineTree objects (2.8% of the binary size). With those fields gone it would drop to 258KB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions