RFR [8022584] Memory leak in some NetworkInterface methods

Alan Bateman Alan.Bateman at oracle.com
Wed Aug 7 18:05:10 PDT 2013


(cc'ing net-dev).

The change looks okay to me. One suggestion (while you are there) is to 
check the return from  GetStringUTFChars so that the name returns when 
it fails with NULL.

-Alan.

On 07/08/2013 17:46, Ivan Gerasimov wrote:
> Hello everybody!
>
> Some methods of NetworkInterface class were reported to leak memory.
> http://bugs.sun.com/view_bug.do?bug_id=JDK-8022584 (not yet available.)
>
> Examples are isUp() and isLoopback().
>
> Affected versions of jdk are 6, 7 and 8
>
> Would you please review a simple fix that removes the unnecessary 
> allocation?
> http://cr.openjdk.java.net/~igerasim/8022584/0/webrev/
>
> Sincerely yours,
> Ivan




More information about the net-dev mailing list