RFR: 8068384: Memleak in WinNTFileSystem_md.c
Alan Bateman
Alan.Bateman at oracle.com
Thu Jan 1 08:11:08 UTC 2015
On 30/12/2014 14:33, Ivan Gerasimov wrote:
> Hello!
>
> There appears to be a memory leak in WinNTFileSystem_list() function.
> I should have noticed it when doing cleanup with JDK-8056310, but
> missed it somehow.
>
> Would you please help review the fix?
>
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8068384
> WEBREV: http://cr.openjdk.java.net/~igerasim/8068384/0/webrev/
I don't there is a leak here as this is just a JNI local ref that will
go away when the native method completes. The reason for the
DeleteLocalRef in the do-while it just to avoid the number of local refs
growing too much as a result of resizing.
-Alan
More information about the nio-dev
mailing list