Integrated: 8303548: Arguments::get_default_shared_archive_path() should cache the result for future use
Matias Saavedra Silva
matsaave at openjdk.org
Fri Mar 10 16:34:25 UTC 2023
On Thu, 9 Mar 2023 21:40:42 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
> The method `Arguments::get_default_shared_archive_path()` generates a string containing a path every time it is called. Since this method is idempotent, the string only needs to be constructed once in the lifetime of the VM. This change caches the result of `Arguments::get_default_shared_archive_path()` and ensures the path string is only generated once.
This pull request has now been integrated.
Changeset: 548d552b
Author: Matias Saavedra Silva <matsaave at openjdk.org>
Committer: Coleen Phillimore <coleenp at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/548d552bc10a3031fc85724ef561d17878dda5b1
Stats: 21 lines in 3 files changed: 3 ins; 3 del; 15 mod
8303548: Arguments::get_default_shared_archive_path() should cache the result for future use
Reviewed-by: ccheung, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/12963
More information about the hotspot-runtime-dev
mailing list