Skip to content

runtime: support partial object collection in GC #9618

Open
@yichengq

Description

@yichengq

It recycles well here (http://play.golang.org/p/qaQaETyZvQ), which appends 1000 elements and not use the slice anymore.

But it doesn't recycle the slice if I make a 1000-element slice first and not use it anymore. (http://play.golang.org/p/CQXs3Rpjae)

If I set some elements in the slice to nil, they can be recycled then. (http://play.golang.org/p/qvYLLZPY74)

I think it should be recycled in all these cases.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions