RFR (XS): 8132892: Memory must be freed after calling Arguments::set_sysclasspath function

Dmitry Dmitriev dmitry.dmitriev at oracle.com
Thu Aug 6 19:58:39 UTC 2015


Hello,

Can I please get review and sponsor for this fix? Thanks!

Dmitry

On 04.08.2015 12:14, Dmitry Dmitriev wrote:
> Hello,
>
> Please review this small fix which fix small memory leak. Also, I need 
> a sponsor for this fix, who can push it.
>
> Arguments::set_sysclasspath function call set_value method of 
> SystemProperty class which copy passed value. In several code paths 
> memory is allocated for string and then this string is passed to 
> Arguments::set_sysclasspath. Therefore allocated string should be 
> freed after calling Arguments::set_sysclasspath function.
>
> Webrev: http://cr.openjdk.java.net/~ddmitriev/8132892/webrev.00/ 
> <http://cr.openjdk.java.net/%7Eddmitriev/8132892/webrev.00/>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8132892
> Tested: JPRT(hotspot test set), hotspot all, vm.quick
>
> Thanks,
> Dmitry



More information about the hotspot-runtime-dev mailing list