RFR: 8332547: Unloaded signature classes in DirectMethodHandles

Vladimir Ivanov vlivanov at openjdk.org
Mon Jun 3 19:36:58 UTC 2024


On Tue, 21 May 2024 20:14:41 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Class loading triggered by `Class.forName()` call is at the core of `isTypeVisible`. (The rest is fast path checks.) It's what makes `isTypeVisible` query idempotent. 
>> 
>> I can definitely name it differently (e.g, `ensureTypeVisible`), but making a separate class loading pass across signature classes doesn't make much sense.
>
>> I can definitely name it differently (e.g, ensureTypeVisible), but making a separate class loading pass across signature classes doesn't make much sense.
> 
> Ok, in that case I suggest also renaming `MemberName::checkForTypeAlias`, maybe to `ensureTypeVisible` as well.

@JornVernee ok, renamed.

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

PR Comment: https://git.openjdk.org/jdk/pull/19319#issuecomment-2145967665


More information about the core-libs-dev mailing list