RFR: 8353189: [ASAN] memory leak after 8352184

Zhengyu Gu zgu at openjdk.org
Mon Apr 7 13:14:37 UTC 2025


On Fri, 28 Mar 2025 16:40:44 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> This PR will try to fix memory leak after JDK-8352184. which re-do [JDK-8352184](https://bugs.openjdk.org/browse/JDK-8352184) using the original, purely static uses of the various description strings, as [~jiangli] had proposed.
> 
> Additional testing:
> 
> - [ ] jtreg tests(include tier1/2/3 etc.) on linux-x64
> - [ ] jtreg tests(include tier1/2/3 etc.) on linux-aarch64
> - [x] full `java -version` tests, the test shell script show as below.
> 
> [JDK-8353189.sh.txt](https://github.com/user-attachments/files/19632637/JDK-8353189.sh.txt)

Maybe you want to cache version string, just as `vm_release` string [here](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/runtime/abstract_vm_version.cpp#L32).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24299#issuecomment-2767611672


More information about the hotspot-dev mailing list