RFR [8022584] Memory leak in some NetworkInterface methods

Alan Bateman Alan.Bateman at oracle.com
Wed Aug 7 18:38:28 PDT 2013


On 07/08/2013 18:20, Ivan Gerasimov wrote:
> Thanks Alan!
>
> I've checked that and it turns out that GetStringUTFChars cannot 
> return NULL.
> For allocation of the result string it calls AllocateHeap() with the 
> default EXIT_OOM fail strategy.
> Thus, in case of being unable to allocate memory it simply stops VM.
>
GetStringUTFChars is supposed to return NULL in OOM situations so this 
may be a bug (but if you can, it would be good to handle it in the 
NetworkInterface code).

-Alan




More information about the net-dev mailing list