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


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 ?
I found retain cycles in JDK based java classes which cause memory leaks on iOS. Below are some snapshots from Instrument Leaks tool.
Similarly, there seems retain cycle in AbstractMap. Because
AbstractMapretainsvaluesandvalues()use anonymous inner class which has implicit reference back toAbstractMap.Does j2objc takes care of memory leaks in JDK by patching them or any other way ?