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

Dmitry Dmitriev dmitry.dmitriev at oracle.com
Tue Aug 4 09:14:16 UTC 2015


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