Integrated: 8249262: Initialize InstanceKlass::_package_entry during CDS dump time

Calvin Cheung ccheung at openjdk.java.net
Thu Jan 28 16:20:41 UTC 2021


On Fri, 22 Jan 2021 23:59:34 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> With JDK-8244778, the `PackageEntry` of all archived classes (for the 3 built-in class loaders) are all created during CDS dump time. We can remember this in `InstanceKlass::_package_entry` during dump time to avoid the hashtable lookup at runtime in `InstanceKlass::set_package()` and `SystemDictionaryShared::get_package_entry_from_class_name()`.
> 
> Passed tiers 1 - 4 testing.
> 
> Just a very small perf improvement with HelloWorld:
> instr delta =        -9514    -0.0145%
> time  delta =       -0.272 ms -0.6916%

This pull request has now been integrated.

Changeset: bbbfaa58
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/bbbfaa58
Stats:     64 lines in 7 files changed: 51 ins; 0 del; 13 mod

8249262: Initialize InstanceKlass::_package_entry during CDS dump time

Reviewed-by: iklam, minqi

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

PR: https://git.openjdk.java.net/jdk/pull/2206


More information about the hotspot-runtime-dev mailing list