Integrated: 8255720: Optimize bci_to_dp/-data by enabling iteration over raw DataLayouts
Claes Redestad
redestad at openjdk.java.net
Mon Nov 2 13:31:57 UTC 2020
On Sun, 1 Nov 2020 22:50:39 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> MethodData::bci_to_dp and ciMethodData::bci_to_data show up in startup/warmup profiles - much of the overhead allocating resource objects when iterating over ProfileData objects (next_data)
>
> Providing a means to iterate over the raw DataLayout objects allow us to avoid explicitly allocating resource objects for purposes of calculating the next DataLayout address for the most common types.
>
> This patch reduces overhead of MethodData::bci_to_dp and ciMethodData::bci_to_data by 80% or more in profiles and has a measurable impact on simple startup tests, e.g. ~250k instruction (~0.2% of total) reduction on Hello World.
>
> Testing: tier1-3 passed
This pull request has now been integrated.
Changeset: 120aec70
Author: Claes Redestad <redestad at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/120aec70
Stats: 99 lines in 4 files changed: 71 ins; 1 del; 27 mod
8255720: Optimize bci_to_dp/-data by enabling iteration over raw DataLayouts
Reviewed-by: kvn, thartmann
-------------
PR: https://git.openjdk.java.net/jdk/pull/988
More information about the hotspot-compiler-dev
mailing list