Skip to content

cmd/gc: temporary variable from previous scope still live #7606

@phicode

Description

@phicode
While debugging a memory problem I found something that looks like temporaries from
previous scopes are sometimes not garbage collected.

In this case disabling compiler optimizations got rid of the leak.

I tried to strip down the problem as much as possible:
http://play.golang.org/p/HR-7R_0f-C

go version: tip (321d42ff40d3)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions