RFR: 8249144: Potential memory leak in TypedMethodOptionMatcher
Zhengyu Gu
zgu at openjdk.java.net
Fri Nov 20 14:51:13 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.
This patch has been reviewed https://mail.openjdk.java.net/pipermail/hotspot-dev/2020-July/042356.html, but I lost track of it during repo migration.
-------------
Commit messages:
- 8249144: Potential memory leak in TypedMethodOptionMatcher
Changes: https://git.openjdk.java.net/jdk/pull/1353/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1353&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8249144
Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/1353.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1353/head:pull/1353
PR: https://git.openjdk.java.net/jdk/pull/1353
More information about the hotspot-compiler-dev
mailing list