RFR: 8068384: Memleak in WinNTFileSystem_md.c

Ivan Gerasimov ivan.gerasimov at oracle.com
Thu Jan 1 10:40:28 UTC 2015


Thanks for explaining!
Closed it as not an issue then.

Sincerely yours,
Ivan

On 01.01.2015 11:11, Alan Bateman wrote:
> 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