RFR: 8293336: AOT-linking of invokedynamic for lambda expression and string concat [v4]

Chen Liang liach at openjdk.org
Fri Oct 18 15:36:59 UTC 2024


On Fri, 18 Oct 2024 14:56:23 GMT, Dan Heidinga <heidinga at openjdk.org> wrote:

>> (I've replied to this comment. I can see it in the mailing list but it seems to be lost on this page, so I'll add it again)
>> 
>> We only resolve indys for the boot/platform/app class loaders, so there's no need to support class unloading. I've updated the comment and tghtened up the code with asserts. See version [382446d](https://github.com/openjdk/jdk/pull/21143/commits/382446d41bb79c4bd2c1dfeda656dfa2a73466b4)
>
> I looked at the InnerClassLambdaMetaFactory and it only generates MHs.Lookup.ClassOption::STRONG classes that live as long as their corresponding loaders.  Given that, do we want an assert here that we are only dealing with strong hidden classes?  ie: `assert(ik->is_hidden() && !ik->is_non_strong_hidden());`

This is correct for the LMF, but I think we are using weak hidden classes in string concatenation.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21143#discussion_r1806691703


More information about the hotspot-dev mailing list