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

Zhengyu Gu zgu at redhat.com
Wed Aug 19 14:34:51 UTC 2020


Fix "Subject" line, missed bug ID:

Bug: https://bugs.openjdk.java.net/browse/JDK-8249144

Thanks,

-Zhengyu

On 7/9/20 9:19 AM, Zhengyu Gu wrote:
> 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