[16] RFR(XS) Potential memory leak in TypedMethodOptionMatcher

Zhengyu Gu zgu at redhat.com
Thu Jul 9 13:19:29 UTC 2020


TypedMethodOptionMatcher owns ccstr value (vs. os::strdup_check_oom()), 
but never frees it in destructor.

It does not appear to a real issue so far, because 
TypedMethodOptionMatcher seems immortal. Given it releases _option 
string, it should also release ccstr value.


Webrev: http://cr.openjdk.java.net/~zgu/JDK-8249144/webrev.00/

Test:
   tier1_compiler on Linux x86_64
   Submit test in progress

Thanks,

-Zhengyu



More information about the hotspot-dev mailing list