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

Ioi Lam iklam at openjdk.org
Tue Oct 22 00:58:00 UTC 2024


On Fri, 18 Oct 2024 05:39:32 GMT, Chen Liang <liach at openjdk.org> wrote:

>> `Class::reflectionFactory` is a large table that must be cleared, or else we will bring unwanted (unsupported) objects into the cache.
>> 
>> During runtime, `reflectionFactory` will be initialized on demand, so there's no need to explicitly create it with `runtimeSetup`.
>
> That said, can reflectionFactory field be stable in the future with this?

Perhaps. In the Leyden repo we are doing some optimizations for reflection. See the `ArchiveReflectionData` flag in the Leyden premain repo.. I am not sure if `reflectionFactory` itself needs to be cached.

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

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


More information about the core-libs-dev mailing list