<AWT Dev>  Review Request: 8215756 Memory leaks in the AWT on macOS
Sergey.Bylokhov at oracle.com
Fri Dec 21 00:20:29 UTC 2018
Please review the fix for jdk 13.
Two memory leaks were fixed:
- AWTView.m: we should release the NSTrackingArea, usually we do this
when we change NSTrackingArea from one to another:
But we also need to do this when the window is deallocated
- AWTWindow.m: We have a JNFWeakJObjectWrapper which holds the reference to the java object,
when the window is deallocated we clear the reference to the java object, but
we also need to release the JNFWeakJObjectWrapper object itself
I have checked by the Instruments that the test attached to the bug will not produce any other leaks after the fix.
Best regards, Sergey.
More information about the awt-dev