RFR: 8294609: C2: Improve inlining of methods with unloaded signature classes [v3]
Vladimir Ivanov
vlivanov at openjdk.org
Fri Sep 30 21:00:17 UTC 2022
On Fri, 30 Sep 2022 20:09:08 GMT, Dean Long <dlong at openjdk.org> wrote:
>> Can you elaborate, please? Neither method resolution nor method selection steps trigger loading of signature classes.
>
> Maybe "loads signature classes" is the wrong choice of words. I mean what SystemDictionary::check_signature_loaders() does. Using the CI interface is guaranteed to go through SystemDictionary::check_signature_loaders(), right?
CI doesn't use `SystemDictionary::check_signature_loaders()`. `ciSignature` constructor eventually calls into `SystemDictionary::find_constrained_instance_or_array_klass()` which also tries `LoaderConstraintTable::find_constrained_klass()` if local search fails.
I tried to stress that by stating that "signature classes aren't required to be local" and "it makes signature classes visible through loader constraints".
-------------
PR: https://git.openjdk.org/jdk/pull/10496
More information about the hotspot-compiler-dev
mailing list