Skip to content

Retain cycles in jdk based classes #2678

@parveen-bhatia

Description

@parveen-bhatia

I found retain cycles in JDK based java classes which cause memory leaks on iOS. Below are some snapshots from Instrument Leaks tool.

Image

Image

Similarly, there seems retain cycle in AbstractMap. Because AbstractMap retains values and values() use anonymous inner class which has implicit reference back to AbstractMap.

Does j2objc takes care of memory leaks in JDK by patching them or any other way ?

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