Integrated: 8316581: Improve performance of Symbol::print_value_on()
Thomas Schatzl
tschatzl at openjdk.org
Thu Sep 21 14:49:53 UTC 2023
On Wed, 20 Sep 2023 09:34:05 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
> Hi all,
>
> please review this (hopefully correct) optimization of `Symbol::print_value_on()`; investigation into class unloading time distribution showed that a lot of time is spent in the `UnloadingEventLog::log()` call (25+%, see CR).
>
> The reason seems to be the use of `outputStream::print()` without any need for formatting.
>
> This seems to decrease time spent in this logging by almost 10x.
>
> Testing: hs_err output seems still be the same, GHA
>
> Thanks,
> Thomas
This pull request has now been integrated.
Changeset: 90bcdbd1
Author: Thomas Schatzl <tschatzl at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/90bcdbd15fe7211377f6f6812a2b562c17995d65
Stats: 6 lines in 1 file changed: 0 ins; 3 del; 3 mod
8316581: Improve performance of Symbol::print_value_on()
Reviewed-by: shade, coleenp, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/15838
More information about the hotspot-dev
mailing list