Skip to content

Holding onto objects too long #1

@PH0lder

Description

@PH0lder

If a person were to make a large circular buffer, and fill it up and subsequently empty it, all the objects placed into it have a strong reference, and thus can't be garbage collected, until they're overwritten by new objects which will then have the same problem. To fix this, your get() method should assign the element in the array to null when the object is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions