<AWT Dev>  Review Request: 8215756 Memory leaks in the AWT on macOS
dmitry.markov at oracle.com
Fri Dec 21 18:33:03 UTC 2018
The fix looks good to me.
> On 21 Dec 2018, at 00:20, Sergey Bylokhov <sergey.bylokhov at oracle.com> wrote:
> Please review the fix for jdk 13.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8215756
> Webrev: http://cr.openjdk.java.net/~serb/8215756/webrev.00
> 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