RFR: JDK-8303183: Memory leak in Arguments::init_shared_archive_paths

David Holmes dholmes at openjdk.org
Sun Feb 26 23:20:03 UTC 2023


On Fri, 24 Feb 2023 19:29:56 GMT, Justin King <jcking at openjdk.org> wrote:

> Fix memory leak by freeing the memory returned by `Arguments::get_default_shared_archive_path()`.

Fix looks good. Thanks.

Seems to me that `Arguments::get_default_shared_archive_path()` is not being used correctly. Given that it constructs the path it should only be called once in the lifetime of the VM and the result stored away for future reference. Future RFE of course.

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

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.org/jdk/pull/12749


More information about the hotspot-runtime-dev mailing list